mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-26 13:47:40 +00:00
fix compilation
This commit is contained in:
+2
-2
@@ -106,13 +106,13 @@ func (storage *PublishedStorage) setKMSFlag() {
|
|||||||
params := &s3.GetBucketEncryptionInput{
|
params := &s3.GetBucketEncryptionInput{
|
||||||
Bucket: aws.String(storage.bucket),
|
Bucket: aws.String(storage.bucket),
|
||||||
}
|
}
|
||||||
output, err := storage.s3.GetBucketEncryption(params)
|
output, err := storage.s3.GetBucketEncryption(context.TODO(), params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(output.ServerSideEncryptionConfiguration.Rules) > 0 &&
|
if len(output.ServerSideEncryptionConfiguration.Rules) > 0 &&
|
||||||
*output.ServerSideEncryptionConfiguration.Rules[0].ApplyServerSideEncryptionByDefault.SSEAlgorithm == "aws:kms" {
|
output.ServerSideEncryptionConfiguration.Rules[0].ApplyServerSideEncryptionByDefault.SSEAlgorithm == "aws:kms" {
|
||||||
storage.encryptByDefault = true
|
storage.encryptByDefault = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user