Skip to content

Commit

Permalink
AMQP validation always returned true
Browse files Browse the repository at this point in the history
AMQP validation always returned true.

Fixes BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=1265638
  • Loading branch information
Ladas committed Dec 8, 2015
1 parent cdc3b64 commit 2c58e6f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/models/manageiq/providers/openstack/manager_mixin.rb
Expand Up @@ -107,7 +107,6 @@ def verify_api_credentials(options = {})
def verify_amqp_credentials(_options = {})
require 'openstack/openstack_event_monitor'
OpenstackEventMonitor.test_amqp_connection(event_monitor_options)
true
rescue => err
miq_exception = translate_exception(err)
raise unless miq_exception
Expand Down
2 changes: 1 addition & 1 deletion gems/pending/openstack/openstack_event_monitor.rb
Expand Up @@ -14,7 +14,7 @@ def self.new(options = {})
end

def self.available?(options)
!event_monitor_class(options).kind_of? OpenstackNullEventMonitor
event_monitor_class(options) != OpenstackNullEventMonitor
end

DEFAULT_PLUGIN_PRIORITY = 0
Expand Down

0 comments on commit 2c58e6f

Please sign in to comment.