You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cleanup duplicated "credentials can not sign" error #3031
$ git log -1 --pretty=%H
d750a1394781dbe33679057c02233d2dfc2540e1
$ git grep -n 'you need a private key to sign'
storage/google/cloud/storage/_signing.py:51: raise AttributeError('you need a private key to sign credentials.'
storage/google/cloud/storage/bucket.py:1121: 'you need a private key to sign credentials.'
Now that google.cloud.storage._signing exists, you could probably move the check from Bucket.generate_upload_policy() into the _signing module.
Meta-comment: This is a really good example of an issue where a TODO in the code would have served a lot better than an issue does. The issue actually loses context.
Activity
lukesneeringer commentedon Aug 11, 2017
@jonparrott Is this still a thing?
theacodes commentedon Aug 11, 2017
Good question - @dhermes is it?
dhermes commentedon Aug 11, 2017
We still have duplicated code:
Now that
google.cloud.storage._signingexists, you could probably move the check fromBucket.generate_upload_policy()into the_signingmodule.lukesneeringer commentedon Aug 11, 2017
Meta-comment: This is a really good example of an issue where a
TODOin the code would have served a lot better than an issue does. The issue actually loses context.