diff --git a/lib/puppet/functions/extlib/cache_data.rb b/lib/puppet/functions/extlib/cache_data.rb index 08f98dc..7ff67b9 100644 --- a/lib/puppet/functions/extlib/cache_data.rb +++ b/lib/puppet/functions/extlib/cache_data.rb @@ -34,7 +34,7 @@ def cache_data(namespace, name, initial_data) cache = File.join(cache_dir, name) if File.exist? cache - YAML.safe_load(File.read(cache)) + YAML.safe_load(File.read(cache), [Symbol, Puppet::Pops::Types::PSensitiveType::Sensitive]) else FileUtils.mkdir_p(cache_dir) File.open(cache, 'w', 0o600) do |c|