vendored/puppet/lib/puppet/node.rb in bolt-0.21.1 vs vendored/puppet/lib/puppet/node.rb in bolt-0.21.2
- old
+ new
@@ -273,10 +273,9 @@
if !trusted_data
trusted = Puppet.lookup(:trusted_information) do
trusted_param || Puppet::Context::TrustedInformation.local(self)
end
- # Ruby 1.9.3 can't apply to_h to a hash, so check first
- self.trusted_data = (trusted.is_a?(Hash) ? trusted : trusted.to_h)
+ self.trusted_data = trusted.to_h
end
end
end