diff options
| author | Jesse Wolfe <jes5199@gmail.com> | 2010-05-12 18:25:14 -0700 |
|---|---|---|
| committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
| commit | ac7efc8f0284d6b35f5428da06ba371cf94998ec (patch) | |
| tree | c1a6a6df5dd2d533c1d0b12b869a0758b8c4cb6f /lib/puppet/ssl | |
| parent | 5665e3984f73c70b90f65dd8bf4445b5adda5121 (diff) | |
| download | puppet-ac7efc8f0284d6b35f5428da06ba371cf94998ec.tar.gz puppet-ac7efc8f0284d6b35f5428da06ba371cf94998ec.tar.xz puppet-ac7efc8f0284d6b35f5428da06ba371cf94998ec.zip | |
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 <jes5199@gmail.com>
Diffstat (limited to 'lib/puppet/ssl')
| -rw-r--r-- | lib/puppet/ssl/certificate_authority.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
