use putBucket to future-proof
New fields can be added to PutBucket in the future.
This commit is contained in:
parent
6512b40bac
commit
2e069eb9f6
1 changed files with 6 additions and 5 deletions
11
Remote/S3.hs
11
Remote/S3.hs
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue