Issue #3226 has been updated by Joe McDonagh.
Trying to find some easy tickets to fix, so:
<pre>
diff --git a/lib/facter/util/collection.rb b/lib/facter/util/collection.rb
index 3f8e0f8..8de90ba 100644
--- a/lib/facter/util/collection.rb
+++ b/lib/facter/util/collection.rb
@@ -121,6 +121,6 @@ class Facter::Util::Collection
# Provide a consistent means of getting the exact same fact name
# every time.
def canonize(name)
- name.to_s.downcase.to_sym
+ name.to_s.strip.downcase.to_sym
end
end
</pre>
----------------------------------------
Bug #3226: Facter not stripping trailing whitespace in at least the productname
fact
http://projects.reductivelabs.com/issues/3226
Author: Andrew Pollock
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version: 1.5.4
Keywords:
Branch:
irb(main):001:0> require 'facter'
=> true
irb(main):002:0> require 'pp'
=> true
irb(main):003:0> facts = Facter.to_hash
[REDACTED]
irb(main):004:0> facts['productname']
=> "Precision WorkStation T3400 "
--
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://reductivelabs.com/redmine/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.