Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Commit 4a0e7be

Browse files
committed
Trying another fix.
1 parent 96c006a commit 4a0e7be

File tree

1 file changed

+2
-2
lines changed
  • lib/puppet/provider/s3_bucket

1 file changed

+2
-2
lines changed

lib/puppet/provider/s3_bucket/v2.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def self.instances
3333

3434
begin
3535
results = s3_client.get_bucket_encryption({bucket: s3_bucket.name})
36-
data[:encryption_configuration] = JSON.pretty_generate(camelize_stringify_keys(results.server_side_encryption_configuration.to_h))
36+
data[:encryption_configuration] = JSON.pretty_generate(camelize_stringify_keys({ 'ServerSideEncryptionConfiguration' => results.server_side_encryption_configuration.to_h }))
3737
rescue Exception => e
3838
Puppet.debug("An error occurred reading the encryption configuration on S3 bucket #{s3_bucket.name}: " + e.message)
3939
end
@@ -84,7 +84,7 @@ def lifecycle_configuration=(value)
8484
end
8585

8686
def encryption_configuration=(value)
87-
Puppet.debug('Replacing bucket lifecycle configuration')
87+
Puppet.debug('Replacing bucket encryption configuration')
8888
s3_client.put_bucket_encryption({
8989
bucket: @property_hash[:name],
9090
server_side_encryption_configuration: underscore_symbolarize_keys(JSON.parse(value))

0 commit comments

Comments
 (0)