diff options
author | Luke Kanies <luke@madstop.com> | 2009-11-04 17:22:13 -0500 |
---|---|---|
committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
commit | a4b77f61f26b20a48e0e55f8fc8bfef338878e6e (patch) | |
tree | 101b994dcd6ad6dee2e5a93dbbd4d93e9cd32454 /lib/puppet/application/main.rb | |
parent | f9254756348e76d557420e18d619dd68775437ae (diff) | |
download | puppet-a4b77f61f26b20a48e0e55f8fc8bfef338878e6e.tar.gz puppet-a4b77f61f26b20a48e0e55f8fc8bfef338878e6e.tar.xz puppet-a4b77f61f26b20a48e0e55f8fc8bfef338878e6e.zip |
Failing in app/puppet if facts are not found
This is a rare case in puppet, but at least will
come up when we support routes.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet/application/main.rb')
-rw-r--r-- | lib/puppet/application/main.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/puppet/application/main.rb b/lib/puppet/application/main.rb index faa317623..5eab81ae6 100644 --- a/lib/puppet/application/main.rb +++ b/lib/puppet/application/main.rb @@ -89,7 +89,9 @@ Puppet::Application.new(:main) do end # Collect our facts. - facts = Puppet::Node::Facts.find(Puppet[:certname]) + unless facts = Puppet::Node::Facts.find(Puppet[:certname]) + raise "Could not find facts for %s" % Puppet[:certname] + end # Find our Node unless node = Puppet::Node.find(Puppet[:certname]) |