Skip to content

Commit 00df90e

Browse files
committed
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.
1 parent 84730e6 commit 00df90e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec-puppet-facts.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,5 +425,5 @@ def self.facter_version_for_puppet_version(puppet_version)
425425

426426
RSpec.configure do |c|
427427
c.add_setting :default_facter_version, default: RspecPuppetFacts.facter_version_for_puppet_version(Puppet.version)
428-
c.add_setting :facterdb_string_keys, default: false
428+
c.add_setting :facterdb_string_keys, default: true
429429
end

0 commit comments

Comments
 (0)