-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
api: dnsIssues related to the Cloud DNS API.Issues related to the Cloud DNS API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
When I tried to call the dns.qoutas method, I got the following errors.
...
.../.virtualenvs/panda/lib/python2.7/site-packages/gcloud/dns/client.py", line 59, in quotas
return dict([(key, int(value))
ValueError: invalid literal for int() with base 10: 'dns#quota'
On introspection, it turns out that the error stems from the attempt to cast the values within the quota dictionary as an integer, specifically this call: int(value) where some of the values are not strings. Except it breaks the client somewhere else, I don't see how what purpose the casting serves in the first place.
Here's a snippet of the return value from the function call:
{u'quota': {u'kind': u'dns#quota', ...},...}
Metadata
Metadata
Assignees
Labels
api: dnsIssues related to the Cloud DNS API.Issues related to the Cloud DNS API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.