Skip to content

Commit 6b622f0

Browse files
authored
Merge pull request #595 from vigrai/fix-check_template_in_host
Fix #594
2 parents 580b484 + f78fc08 commit 6b622f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/zabbix.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def get_template_id(zbx, template)
9090
end
9191

9292
# Check if given template name exists in current host.
93-
def check_template_in_host(host)
93+
def check_template_in_host(host, template)
9494
template_id = get_template_id(zbx, template)
9595
template_array = zbx.templates.get_ids_by_host(hostids: [zbx.hosts.get_id(host: host)])
9696
template_array.include?(template_id.to_s)

0 commit comments

Comments
 (0)