diff options
| author | Nick Lewis <nick@puppetlabs.com> | 2011-06-08 18:47:44 -0700 |
|---|---|---|
| committer | Nick Lewis <nick@puppetlabs.com> | 2011-06-08 18:47:44 -0700 |
| commit | 649b3dc58349d3bbb1bd28bf882013c2cf5b8000 (patch) | |
| tree | 1f047edff3c51258b3367a1d5c9f5cfbb02b4c71 /lib/puppet/application | |
| parent | e0573603c5780e79c2461ece604c6388e4222504 (diff) | |
| parent | 8ccd00963d91f168438eaec4b29a18cd4a1ac583 (diff) | |
| download | puppet-649b3dc58349d3bbb1bd28bf882013c2cf5b8000.tar.gz puppet-649b3dc58349d3bbb1bd28bf882013c2cf5b8000.tar.xz puppet-649b3dc58349d3bbb1bd28bf882013c2cf5b8000.zip | |
Merge branch '2.7.x'
Diffstat (limited to 'lib/puppet/application')
| -rw-r--r-- | lib/puppet/application/agent.rb | 2 | ||||
| -rw-r--r-- | lib/puppet/application/apply.rb | 13 |
2 files changed, 10 insertions, 5 deletions
diff --git a/lib/puppet/application/agent.rb b/lib/puppet/application/agent.rb index 06a158fb3..f0442648b 100644 --- a/lib/puppet/application/agent.rb +++ b/lib/puppet/application/agent.rb @@ -320,7 +320,7 @@ Copyright (c) 2011 Puppet Labs, LLC Licensed under the Apache 2.0 License unless fingerprint = cert.fingerprint(options[:digest]) raise ArgumentError, "Could not get fingerprint for digest '#{options[:digest]}'" end - Puppet.notice fingerprint + puts fingerprint end def onetime diff --git a/lib/puppet/application/apply.rb b/lib/puppet/application/apply.rb index 5779e799c..3ba06d34a 100644 --- a/lib/puppet/application/apply.rb +++ b/lib/puppet/application/apply.rb @@ -168,13 +168,18 @@ Copyright (c) 2011 Puppet Labs, LLC Licensed under the Apache 2.0 License end # Collect our facts. - unless facts = Puppet::Node::Facts.indirection.find(Puppet[:certname]) - raise "Could not find facts for #{Puppet[:certname]}" + unless facts = Puppet::Node::Facts.indirection.find(Puppet[:node_name_value]) + raise "Could not find facts for #{Puppet[:node_name_value]}" + end + + unless Puppet[:node_name_fact].empty? + Puppet[:node_name_value] = facts.values[Puppet[:node_name_fact]] + facts.name = Puppet[:node_name_value] end # Find our Node - unless node = Puppet::Node.indirection.find(Puppet[:certname]) - raise "Could not find node #{Puppet[:certname]}" + unless node = Puppet::Node.indirection.find(Puppet[:node_name_value]) + raise "Could not find node #{Puppet[:node_name_value]}" end # Merge in the facts. |
