From c338fef73a4d8d8dbd1500f0c6bb0e37c6eba8bb Mon Sep 17 00:00:00 2001 From: Jesse Wolfe Date: Wed, 12 May 2010 18:28:27 -0700 Subject: Feature #2935: Test for if we're "puppet cert" Fix breakage caused by changing the name of "puppetca" It's not clear to me what the ideal answer for this is: I don't think that "cert" should be a type of Puppet::Mode, so I'm not sure how to model it more intelligently than as the command-line name. Signed-off-by: Jesse Wolfe --- lib/puppet/sslcertificates/ca.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/puppet/sslcertificates/ca.rb b/lib/puppet/sslcertificates/ca.rb index f6bcbc1f7..d4fc7b60f 100644 --- a/lib/puppet/sslcertificates/ca.rb +++ b/lib/puppet/sslcertificates/ca.rb @@ -20,7 +20,7 @@ class Puppet::SSLCertificates::CA if FileTest.exists?(file) begin - if Puppet[:name] == "puppetca" + if Puppet[:name] == "cert" puts "Removing %s" % file else Puppet.info "Removing %s" % file -- cgit