Issue #14469 has been updated by Hailee Kenney. Status changed from In Topic Branch Pending Review to Merged - Pending Release
---------------------------------------- Bug #14469: Frozen strings returned by facts cause Facter to fail https://projects.puppetlabs.com/issues/14469#change-62828 Author: Daniel Pittman Status: Merged - Pending Release Priority: Normal Assignee: Hailee Kenney Category: library Target version: 2.0.0 Keywords: Branch: https://github.com/puppetlabs/facter/pull/208 Affected Facter version: After some other changes, facter master fails on the Mac with "Error: can't modify frozen String": <pre> /Users/daniel/puppetlabs/facter/lib/facter/util/resolution.rb:233:in `strip!': can't modify frozen String (RuntimeError) from /Users/daniel/puppetlabs/facter/lib/facter/util/resolution.rb:233:in `value' from /Users/daniel/puppetlabs/facter/lib/facter/util/fact.rb:75:in `block (2 levels) in value' from /Users/daniel/puppetlabs/facter/lib/facter/util/fact.rb:71:in `each' from /Users/daniel/puppetlabs/facter/lib/facter/util/fact.rb:71:in `inject' from /Users/daniel/puppetlabs/facter/lib/facter/util/fact.rb:71:in `block in value' from /Users/daniel/puppetlabs/facter/lib/facter/util/fact.rb:108:in `searching' from /Users/daniel/puppetlabs/facter/lib/facter/util/fact.rb:67:in `value' from /Users/daniel/puppetlabs/facter/lib/facter/util/collection.rb:114:in `block in to_hash' from /Users/daniel/puppetlabs/facter/lib/facter/util/collection.rb:113:in `each' from /Users/daniel/puppetlabs/facter/lib/facter/util/collection.rb:113:in `inject' from /Users/daniel/puppetlabs/facter/lib/facter/util/collection.rb:113:in `to_hash' from /Users/daniel/puppetlabs/facter/lib/facter.rb:101:in `block (2 levels) in singletonclass' from /Users/daniel/puppetlabs/facter/lib/facter/application.rb:26:in `run' from /Users/daniel/puppetlabs/facter/bin/facter:60:in `<main>' </pre> It looks like the changed plist implementation is returning frozen strings, which we are unable to modify. It should be sufficient to duplicate frozen strings at that point, if modification is required. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
