diff options
author | Luke Kanies <luke@madstop.com> | 2008-03-16 16:27:31 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-03-16 16:27:31 -0500 |
commit | 405802ec039adefd919b99567befa6e6b6e8d5b5 (patch) | |
tree | c318b295b700b6768938a37c09676f5b5f354177 | |
parent | 872ced7126877dd74a051d8b38ae29920ad0d9b2 (diff) | |
download | puppet-405802ec039adefd919b99567befa6e6b6e8d5b5.tar.gz puppet-405802ec039adefd919b99567befa6e6b6e8d5b5.tar.xz puppet-405802ec039adefd919b99567befa6e6b6e8d5b5.zip |
Using the indirected facts rather than master.getfacts, so no factsync is used
-rwxr-xr-x | ext/puppet-test | 6 |
1 files 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] |