Skip to content

Commit

Permalink
Merge pull request #595 from vigrai/fix-check_template_in_host
Browse files Browse the repository at this point in the history
Fix #594
  • Loading branch information
bastelfreak authored Feb 27, 2019
2 parents 580b484 + f78fc08 commit 6b622f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/zabbix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def get_template_id(zbx, template)
end

# Check if given template name exists in current host.
def check_template_in_host(host)
def check_template_in_host(host, template)
template_id = get_template_id(zbx, template)
template_array = zbx.templates.get_ids_by_host(hostids: [zbx.hosts.get_id(host: host)])
template_array.include?(template_id.to_s)
Expand Down

0 comments on commit 6b622f0

Please sign in to comment.