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