-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fix storage encryption example, remove policy document example. #3221
Fix storage encryption example, remove policy document example. #3221
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should ask @jonparrott to help with the failure. Removing the example doesn't stop the feature from being broken?
docs/storage_snippets.py
Outdated
@@ -138,7 +139,8 @@ def delete_blob(client, to_delete): | |||
from google.cloud.exceptions import NotFound | |||
client = storage.Client() | |||
bucket = client.get_bucket('my-bucket') | |||
assert isinstance(bucket.list_blobs(), list) | |||
blobs = list(bucket.list_blobs()) | |||
assert isinstance(blobs, list) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@daspecster I saw his comment, but didn't interpret it as "I give up forever" |
@dhermes sorry, I'm just trying to get through all this before the GA so there's at least a record of things that may be broken. I may have taken @lukesneeringer's comment in the meeting about removing examples to far in this case? |
Added "do not merge" label until #3222 is figured out. |
@daspecster You can just restore that example so you don't need to block this PR, then settle what is to be settled in #3222 |
@dhermes restored! |
1e10d2a
to
358bf5f
Compare
No, you were right. If we cannot fix the code in time, I would prefer remove the example. No example (and an issue to fix the bug) is better than an example that fails. |
@lukesneeringer ok I'll rebase the last commit out and then we should be good on this one? |
358bf5f
to
3f7c92e
Compare
Yes, with the caveat that definitely make an effort to fix the bug. :-) |
This removes the policy document example. I'm not sure why it's failing at the moment.
Also adds a line to the encryption key example to make it work out of the box.