Changing to qpid does not set qpid attributes

The case statement needs to check the node's service_type, not the
default.  Checking the default will always result in the rabbitmq
attributes being set.

Change-Id: Iaa83d07c12b21037b60d938e7eb1b5f548777d2a
Closes-Bug: #1282528
This commit is contained in:
Matt Thompson
2014-02-20 11:42:49 +00:00
parent bbf4089a7b
commit 589d4be508

View File

@@ -75,7 +75,7 @@ rabbit_defaults = {
services.each do |svc|
default['openstack']['mq'][svc]['service_type'] = node['openstack']['mq']['service_type']
case default['openstack']['mq'][svc]['service_type']
case node['openstack']['mq'][svc]['service_type']
when 'qpid'
qpid_defaults.each do |key, val|
default['openstack']['mq'][svc]['qpid'][key.to_s] = val