From ac7efc8f0284d6b35f5428da06ba371cf94998ec Mon Sep 17 00:00:00 2001 From: Jesse Wolfe Date: Wed, 12 May 2010 18:25:14 -0700 Subject: Feature #2935 Puppet::Mode#master? Use a predicate function on the Mode object instead of comparing with the executable name everywhere Signed-off-by: Jesse Wolfe --- lib/puppet/ssl/certificate_authority.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/puppet/ssl') diff --git a/lib/puppet/ssl/certificate_authority.rb b/lib/puppet/ssl/certificate_authority.rb index 111b72009..bd081c914 100644 --- a/lib/puppet/ssl/certificate_authority.rb +++ b/lib/puppet/ssl/certificate_authority.rb @@ -33,7 +33,7 @@ class Puppet::SSL::CertificateAuthority def self.ca? return false unless Puppet[:ca] - return false unless Puppet[:name] == "puppetmasterd" + return false unless Puppet.mode.master? return true end -- cgit