forked from TrueCloudLab/frostfs-s3-gw
[#301] Implement GetBucketLocation
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
9b14340816
commit
b9f77b3d96
6 changed files with 43 additions and 21 deletions
|
@ -549,6 +549,7 @@ func (h *handler) CreateBucketHandler(w http.ResponseWriter, r *http.Request) {
|
|||
for _, placementPolicy := range policies {
|
||||
if placementPolicy.LocationConstraint == createParams.LocationConstraint {
|
||||
p.Policy = placementPolicy.Policy
|
||||
p.LocationConstraint = createParams.LocationConstraint
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue