Syntax fix for newer ruby
This commit is contained in:
parent
5fa86b9ec4
commit
a790f35934
@ -3,6 +3,6 @@ maintainer "HP_Cloud_Monitoring"
|
||||
maintainer_email "hpcs-mon@hp.com"
|
||||
description "Installs/Configures mon-agent components"
|
||||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
||||
version "1.1.0"
|
||||
version "1.1.1"
|
||||
depends 'python'
|
||||
recipe "mon_api::default", "Default"
|
||||
|
@ -12,7 +12,7 @@ end
|
||||
# Configures the plugin yaml files based on node[:mon_agent][:plugin]
|
||||
# attributes
|
||||
node[:mon_agent][:plugin].each_key do |plugin|
|
||||
if not node[:mon_agent][:plugin][plugin].has_key?(:init_config):
|
||||
if not node[:mon_agent][:plugin][plugin].has_key?(:init_config)
|
||||
node[:mon_agent][:plugin][plugin][:init_config] = {}
|
||||
end
|
||||
template "/etc/mon-agent/conf.d/#{plugin}.yaml" do
|
||||
|
Loading…
x
Reference in New Issue
Block a user