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

Commit 96c006a

Browse files
committed
Encryption configuration is now extracted properly.
1 parent e1350b9 commit 96c006a

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

lib/puppet/provider/s3_bucket/v2.rb

Lines changed: 1 addition & 1 deletion
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.to_h))
36+
data[:encryption_configuration] = JSON.pretty_generate(camelize_stringify_keys(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

0 commit comments

Comments
 (0)