This repository was archived by the owner on Jun 5, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/puppet/provider/s3_bucket Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) )
You can’t perform that action at this time.
0 commit comments