Logging: sink reload throws exception if the sink has no filter #4696
Labels
api: logging
Issues related to the Cloud Logging API.
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
A KeyError exception for 'filter' is thrown when calling [sink].reload() if there is no filter. The API doesn't return a 'filter' key when retrieving the sink if its null.
Simplified code example
Raw API response for sink request (via gcloud)
Problematic code
/google/cloud/logging/sink.py Line 157
self.filter_ = data['filter']
Traceback
The text was updated successfully, but these errors were encountered: