Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google.cloud.storage.bucket.Bucket list_bucket list_blob max_results does not work as described #2482

Closed
thefunkjunky opened this issue Oct 3, 2016 · 1 comment
Assignees
Labels
api: storage Issues related to the Cloud Storage API. status: duplicate Duplicate.

Comments

@thefunkjunky
Copy link

thefunkjunky commented Oct 3, 2016

from a customer:

"list_bucket returns more values than max_results argument. Here is the python code...

bucket = Bucket(client, 'my-bucket-name')
blobs = bucket.list_blob(
    max_results=10, page_token=None, fields="items/name,nextPageToken")

for b in blobs:
   print(b.name)

etc.... it returns all the blob names from the bucket, far more than max_results=10"

@dhermes dhermes added the api: storage Issues related to the Cloud Storage API. label Oct 3, 2016
@dhermes
Copy link
Contributor

dhermes commented Oct 3, 2016

Indeed. This needs to be fixed ASAP.

Duplicate of #1467

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. status: duplicate Duplicate.
Projects
None yet
Development

No branches or pull requests

2 participants