From 405802ec039adefd919b99567befa6e6b6e8d5b5 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Sun, 16 Mar 2008 16:27:31 -0500 Subject: Using the indirected facts rather than master.getfacts, so no factsync is used --- ext/puppet-test | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/puppet-test b/ext/puppet-test index e18dd1c57..a860ac002 100755 --- a/ext/puppet-test +++ b/ext/puppet-test @@ -232,10 +232,12 @@ Suite.new :catalog, "Catalog handling" do # Use the facts from the cache, to skip the time it takes # to load them. @client.dostorage - @facts = Puppet::Util::Storage.cache(:configuration)[:facts] + @facts = Puppet::Util::Storage.cache(:configuration)[:facts] || {} if @facts.empty? - @facts = @client.master.getfacts + if tmp = Puppet::Node::Facts.find("me") + @facts = tmp.values + end end if host = $options[:fqdn] -- cgit