Skip to content

bucket location is not supported  #1575

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")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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