vendored/puppet/lib/puppet/parser/ast/leaf.rb in bolt-0.15.0 vs vendored/puppet/lib/puppet/parser/ast/leaf.rb in bolt-0.16.0

- old
+ new

@@ -26,10 +26,10 @@ # Note that this is an AST::Regex, not a Regexp unless @value.is_a?(Regex) @value = @value.to_s.downcase if @value =~ /[^-\w.]/ - raise Puppet::DevError, "'#{@value}' is not a valid hostname" + raise Puppet::DevError, _("'%{value}' is not a valid hostname") % { value: @value } end end end # implementing eql? and hash so that when an HostName is stored