Skip to content

bucket location is not supported  #1575

@basvandenbroek

Description

@basvandenbroek

Setting the location when creating a new bucket doesn't work:

#!/usr/bin/env python3
from gcloud import storage    
client = storage.Client(project='foo')
bucket = Bucket(client=client, name="bar")
bucket.location = "EU"
bucket.create()

The bucket is always created with the default US location .
Patching the properties before creating the bucket doesn't work either:

bucket._patch_property('LocationConstraint', "EU")

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions