use putBucket to future-proof

New fields can be added to PutBucket in the future.
This commit is contained in:
Joey Hess 2018-12-31 13:09:20 -04:00
parent 6512b40bac
commit 2e069eb9f6
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -433,13 +433,14 @@ genBucket c gc u = do
Right _ -> noop
Left _ -> do
showAction $ "creating bucket in " ++ datacenter
void $ sendS3Handle h $ S3.PutBucket
(bucket info)
(acl info)
locconstraint
void $ sendS3Handle h $
(S3.putBucket (bucket info))
{ S3.pbCannedAcl = acl info
, S3.pbLocationConstraint = locconstraint
#if MIN_VERSION_aws(0,13,0)
storageclass
, S3.pbXStorageClass = storageclass
#endif
}
writeUUIDFile c u info h
locconstraint = mkLocationConstraint $ T.pack datacenter