diff options
Diffstat (limited to 'lib/chef/resource')
-rw-r--r-- | lib/chef/resource/openssl_x509_certificate.rb | 4 | ||||
-rw-r--r-- | lib/chef/resource/openssl_x509_request.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/resource/openssl_x509_certificate.rb b/lib/chef/resource/openssl_x509_certificate.rb index 7c354588af..04641e877b 100644 --- a/lib/chef/resource/openssl_x509_certificate.rb +++ b/lib/chef/resource/openssl_x509_certificate.rb @@ -70,11 +70,11 @@ class Chef property :extensions, Hash, description: "Hash of X509 Extensions entries, in format { 'keyUsage' => { 'values' => %w( keyEncipherment digitalSignature), 'critical' => true } }.", - default: {} + default: lazy { Hash.new } property :subject_alt_name, Array, description: "Array of Subject Alternative Name entries, in format DNS:example.com or IP:1.2.3.4.", - default: [] + default: lazy { [] } property :key_file, String, description: "The path to a certificate key file on the filesystem. If the key_file attribute is specified, the resource will attempt to source a key from this location. If no key file is found, the resource will generate a new key file at this location. If the key_file attribute is not specified, the resource will generate a key file in the same directory as the generated certificate, with the same name as the generated certificate." diff --git a/lib/chef/resource/openssl_x509_request.rb b/lib/chef/resource/openssl_x509_request.rb index b111b7e80a..a7b989d96d 100644 --- a/lib/chef/resource/openssl_x509_request.rb +++ b/lib/chef/resource/openssl_x509_request.rb @@ -18,7 +18,7 @@ require "chef/resource" class Chef class Resource - class OpensslX509Certificate < Chef::Resource + class OpensslX509Request < Chef::Resource require "chef/mixin/openssl_helper" include Chef::Mixin::OpenSSLHelper |