We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 580b484 + f78fc08 commit 6b622f0Copy full SHA for 6b622f0
lib/puppet/provider/zabbix.rb
@@ -90,7 +90,7 @@ def get_template_id(zbx, template)
90
end
91
92
# Check if given template name exists in current host.
93
- def check_template_in_host(host)
+ def check_template_in_host(host, template)
94
template_id = get_template_id(zbx, template)
95
template_array = zbx.templates.get_ids_by_host(hostids: [zbx.hosts.get_id(host: host)])
96
template_array.include?(template_id.to_s)
0 commit comments