vendored/puppet/lib/puppet/provider/naginator.rb in bolt-0.15.0 vs vendored/puppet/lib/puppet/provider/naginator.rb in bolt-0.16.0

- old
+ new

@@ -8,10 +8,10 @@ # Retrieve the associated class from Nagios::Base. def self.nagios_type unless @nagios_type name = resource_type.name.to_s.sub(/^nagios_/, '') unless @nagios_type = Nagios::Base.type(name.to_sym) - raise Puppet::DevError, "Could not find nagios type '#{name}'" + raise Puppet::DevError, _("Could not find nagios type '%{name}'") % { name: name } end # And add our 'ensure' settings, since they aren't a part of # Naginator by default @nagios_type.send(:attr_accessor, :ensure, :target, :on_disk)