Skip to content

Commit

Permalink
icinga director: re-raise NotModified exception
Browse files Browse the repository at this point in the history
  • Loading branch information
timogoebel committed Feb 5, 2018
1 parent d30d5e6 commit 3792137
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/smart_proxy_monitoring_icingadirector/director_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def handle_http_exception(e, url)
Proxy::Monitoring::NotFound.new("Icinga Director returned not found for #{request_url(url)}.")
when RestClient::Unauthorized
Proxy::Monitoring::AuthenticationError.new("Error authenicating to Icinga Director at #{request_url(url)}: #{e.message}")
when RestClient::NotModified
raise
else
Proxy::Monitoring::Error.new("Error connecting to Icinga Director at #{request_url(url)}: #{e.message}")
end
Expand Down

0 comments on commit 3792137

Please sign in to comment.