diff options
Diffstat (limited to 'lib/puppet/client/ca.rb')
| -rw-r--r-- | lib/puppet/client/ca.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/client/ca.rb b/lib/puppet/client/ca.rb index 11989230c..a7fa71e88 100644 --- a/lib/puppet/client/ca.rb +++ b/lib/puppet/client/ca.rb @@ -7,7 +7,11 @@ class Puppet::Client::CAClient < Puppet::Client::ProxyClient def initialize(hash = {}) if hash.include?(:CA) - hash[:CA] = Puppet::Server::CA.new() + if hash[:CA].is_a? Hash + hash[:CA] = Puppet::Server::CA.new(hash[:CA]) + else + hash[:CA] = Puppet::Server::CA.new() + end end super(hash) |
