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
|
Right _ -> noop
|
||||||
Left _ -> do
|
Left _ -> do
|
||||||
showAction $ "creating bucket in " ++ datacenter
|
showAction $ "creating bucket in " ++ datacenter
|
||||||
void $ sendS3Handle h $ S3.PutBucket
|
void $ sendS3Handle h $
|
||||||
(bucket info)
|
(S3.putBucket (bucket info))
|
||||||
(acl info)
|
{ S3.pbCannedAcl = acl info
|
||||||
locconstraint
|
, S3.pbLocationConstraint = locconstraint
|
||||||
#if MIN_VERSION_aws(0,13,0)
|
#if MIN_VERSION_aws(0,13,0)
|
||||||
storageclass
|
, S3.pbXStorageClass = storageclass
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
writeUUIDFile c u info h
|
writeUUIDFile c u info h
|
||||||
|
|
||||||
locconstraint = mkLocationConstraint $ T.pack datacenter
|
locconstraint = mkLocationConstraint $ T.pack datacenter
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue