summaryrefslogtreecommitdiffstats
path: root/lib/facter/util/collection.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/facter/util/collection.rb')
-rw-r--r--lib/facter/util/collection.rb6
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.