-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
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.Issues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.