summaryrefslogtreecommitdiffstats
path: root/lib/puppet/sslcertificates
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-05-12 18:28:27 -0700
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commitc338fef73a4d8d8dbd1500f0c6bb0e37c6eba8bb (patch)
treefd7fa692115a41b19dde66b5e3854b4c5b71a1e3 /lib/puppet/sslcertificates
parentcbb28026b2ece55be06530fb2572cdc7b48f2895 (diff)
downloadpuppet-c338fef73a4d8d8dbd1500f0c6bb0e37c6eba8bb.tar.gz
puppet-c338fef73a4d8d8dbd1500f0c6bb0e37c6eba8bb.tar.xz
puppet-c338fef73a4d8d8dbd1500f0c6bb0e37c6eba8bb.zip
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 <jes5199@gmail.com>
Diffstat (limited to 'lib/puppet/sslcertificates')
-rw-r--r--lib/puppet/sslcertificates/ca.rb2
1 files changed, 1 insertions, 1 deletions
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