From 589d4be508a9f628a8618d5bd53bb99ef8842e2f Mon Sep 17 00:00:00 2001 From: Matt Thompson Date: Thu, 20 Feb 2014 11:42:49 +0000 Subject: [PATCH] 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 --- attributes/messaging.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attributes/messaging.rb b/attributes/messaging.rb index 307e1713..d1f6e1a5 100644 --- a/attributes/messaging.rb +++ b/attributes/messaging.rb @@ -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