diff --git a/lib/puppet/provider/zabbix_host/ruby.rb b/lib/puppet/provider/zabbix_host/ruby.rb index cc727c1c2..f46dee2b1 100644 --- a/lib/puppet/provider/zabbix_host/ruby.rb +++ b/lib/puppet/provider/zabbix_host/ruby.rb @@ -25,7 +25,7 @@ def create # Get the template ids. template_array = [] - if templates.is_af?(Array) + if templates.is_a?(Array) templates.each do |template| template_id = self.class.get_template_id(zbx, template) template_array.push template_id