From: Arthur Martella Date: Wed, 25 Apr 2018 15:51:07 +0000 (-0400) Subject: Prevent string conversion for messageBusAddress X-Git-Tag: 2.0.0-ONAP~6 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F85%2F44685%2F2;p=so%2Fso-config.git Prevent string conversion for messageBusAddress Patch 2 generalizes the problem to any Array which may appear in the future. Change-Id: I2586de3ccdb698810a7f42ad5217e1020678d76a Issue-ID: SO-563 Signed-off-by: Arthur Martella --- diff --git a/recipes/mso-asdc-controller-config.rb b/recipes/mso-asdc-controller-config.rb index d83a19a..65f3ec6 100644 --- a/recipes/mso-asdc-controller-config.rb +++ b/recipes/mso-asdc-controller-config.rb @@ -23,6 +23,8 @@ ruby_block 'replace_consumer_group_in_asdc_json' do if "#{config_name}" == "consumerGroup" or "#{config_name}" == "consumerId" asdc_client_configs[config_name] = "#{config_value}-#{node.chef_environment}#{node['hostname'][-1]}" + elsif config_value.class == Array or config_value.class == Chef::Node::ImmutableArray + asdc_client_configs[config_name] = config_value else asdc_client_configs[config_name] = "#{config_value}" end