Skip to content

Commit

Permalink
Merge pull request #271 from mansam/parse-credential-verification-err…
Browse files Browse the repository at this point in the history
…or-messages

translate_exceptions: Parse errors out of fog responses
  • Loading branch information
aufi authored Apr 13, 2018
2 parents 8a4b2ce + 1357c8a commit 0039133
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/manageiq/providers/openstack/manager_mixin.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module ManageIQ::Providers::Openstack::ManagerMixin
extend ActiveSupport::Concern
include ManageIQ::Providers::Openstack::HelperMethods

included do
after_save :stop_event_monitor_queue_on_change
Expand Down Expand Up @@ -49,7 +50,7 @@ def translate_exception(err)
when MiqException::MiqInvalidCredentialsError, MiqException::MiqHostError
err
else
MiqException::MiqEVMLoginError.new("Unexpected response returned from system: #{err.message}")
MiqException::MiqEVMLoginError.new("Unexpected response returned from system: #{parse_error_message_from_fog_response(err)}")
end
end
end
Expand Down

0 comments on commit 0039133

Please sign in to comment.