diff options
author | Arthur Martella <am153x@att.com> | 2018-04-25 11:51:07 -0400 |
---|---|---|
committer | Arthur Martella <am153x@att.com> | 2018-04-25 16:15:55 -0400 |
commit | c7c28184a9def9454fac8ea78bbcd9d91e286cd2 (patch) | |
tree | a423fcfe7c272f3045882101c8debe0740eaf3cb | |
parent | 26ba38cf122ca0bb944e3e34fc0ba8c821d67d80 (diff) |
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 <am153x@att.com>
-rw-r--r-- | recipes/mso-asdc-controller-config.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |