vendored/puppet/lib/puppet/ssl/oids.rb in bolt-0.23.0 vs vendored/puppet/lib/puppet/ssl/oids.rb in bolt-0.24.0

- old
+ new

@@ -102,10 +102,10 @@ # longname: 'Other Long name' def self.parse_custom_oid_file(custom_oid_file, map_key='oid_mapping') if File.exists?(custom_oid_file) && File.readable?(custom_oid_file) mapping = nil begin - mapping = YAML.load_file(custom_oid_file) + mapping = Puppet::Util::Yaml.safe_load_file(custom_oid_file, [Symbol]) rescue => err raise Puppet::Error, _("Error loading ssl custom OIDs mapping file from '%{custom_oid_file}': %{err}") % { custom_oid_file: custom_oid_file, err: err }, err.backtrace end unless mapping.has_key?(map_key)