From 16b2311256a142a69cb9ddadf29eea804b281e1c Mon Sep 17 00:00:00 2001 From: Ben Hughes Date: Tue, 5 Apr 2011 16:19:01 +1000 Subject: (#6885) puppet agent fingerprint requires --verbose to return a value. Always output the fingerprint to STDOUT, no matter what loglevel is used, as that's the whole purpose of the comment. Having to specify --verbose in addition to --fingerprint to get the finger is nonsensical. Update the spec test to stub @puppet puts, instead of the Puppet.logging facilities. Reviewed-by: Daniel Pittman --- lib/puppet/application/agent.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/puppet/application') diff --git a/lib/puppet/application/agent.rb b/lib/puppet/application/agent.rb index 3749241f8..53e083232 100644 --- a/lib/puppet/application/agent.rb +++ b/lib/puppet/application/agent.rb @@ -98,7 +98,7 @@ class Puppet::Application::Agent < Puppet::Application 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 -- cgit