diff options
author | Diego Algorta <diego@oboxodo.com> | 2009-08-13 14:49:12 -0300 |
---|---|---|
committer | Paul Nasrat <pnasrat@googlemail.com> | 2009-08-14 07:52:26 +0100 |
commit | 0e0483ae3f00d408766a850823e3120caedfb9fc (patch) | |
tree | b2203d5393a13c0c505b78772fb465aba360af2d /lib/facter.rb | |
parent | fe41fb80dda8c96814b7a57875331b731dd04395 (diff) | |
download | facter-0e0483ae3f00d408766a850823e3120caedfb9fc.tar.gz facter-0e0483ae3f00d408766a850823e3120caedfb9fc.tar.xz facter-0e0483ae3f00d408766a850823e3120caedfb9fc.zip |
Fix bug where you'd get an 'undefined method' error if trying to access a fact's value when collection has not being yet initialized.
Diffstat (limited to 'lib/facter.rb')
-rw-r--r-- | lib/facter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/facter.rb b/lib/facter.rb index d75f275..6e05495 100644 --- a/lib/facter.rb +++ b/lib/facter.rb @@ -120,7 +120,7 @@ module Facter name = name.to_s.sub(/\?$/,'') end - if fact = @collection.fact(name) + if fact = collection.fact(name) if question value = fact.value.downcase args.each do |arg| |