diff options
author | Nick Lewis <nick@puppetlabs.com> | 2011-05-31 15:37:30 -0700 |
---|---|---|
committer | Nick Lewis <nick@puppetlabs.com> | 2011-05-31 15:37:30 -0700 |
commit | 97927e321d1e24554ad21b92ef4afb1bd64c0167 (patch) | |
tree | df2f82066114918911670749887812674e4a72e1 /lib/facter/util/collection.rb | |
parent | 59173268a5c6525a4a5df55b362775d07bc6b52d (diff) | |
parent | 9404a7a3bb8da660e26897d052cdd03c291fb0bb (diff) | |
download | facter-master.tar.gz facter-master.tar.xz facter-master.zip |
Diffstat (limited to 'lib/facter/util/collection.rb')
-rw-r--r-- | lib/facter/util/collection.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/facter/util/collection.rb b/lib/facter/util/collection.rb index 3f8e0f8..b3d3a45 100644 --- a/lib/facter/util/collection.rb +++ b/lib/facter/util/collection.rb @@ -66,9 +66,13 @@ class Facter::Util::Collection def fact(name) name = canonize(name) + # Try to load the fact if necessary loader.load(name) unless @facts[name] - return @facts[name] + # Try HARDER + loader.load_all unless @facts[name] + + @facts[name] end # Flush all cached values. |