Skip to content

Commit c785a0d

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 e613291 commit c785a0d

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
@@ -426,5 +426,5 @@ def self.facter_version_for_puppet_version(puppet_version)
426426

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

0 commit comments

Comments
 (0)