From 6a3cdb8c86d78f2894103efe3f30c3ebbb563675 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Fri, 21 Jun 2024 10:14:17 +0200 Subject: [PATCH] stringify fact keys by default for a long long time, the first level of keys in a factsets were symbols. Following nested hashes always had strings. This doesn't make sense and looks confusing. Also the original data contains only strings, we we actually iterated on the data and converted it to symbols. We now flip the default. This saves performance and makes code more readable. --- lib/rspec-puppet-facts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rspec-puppet-facts.rb b/lib/rspec-puppet-facts.rb index 2c7b5d83..6cb06adf 100644 --- a/lib/rspec-puppet-facts.rb +++ b/lib/rspec-puppet-facts.rb @@ -426,5 +426,5 @@ def self.facter_version_for_puppet_version(puppet_version) RSpec.configure do |c| c.add_setting :default_facter_version, default: RspecPuppetFacts.facter_version_for_puppet_version(Puppet.version) - c.add_setting :facterdb_string_keys, default: false + c.add_setting :facterdb_string_keys, default: true end