Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dns/google/cloud/dns/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def quotas(self):

return {key: int(value)
for key, value in resp['quota'].items()
if key != 'kind'}
if key != 'kind' and type(value) is not list}

def list_zones(self, max_results=None, page_token=None):
"""List zones for the project associated with this client.
Expand Down
4 changes: 3 additions & 1 deletion dns/tests/unit/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,12 @@ def test_quotas_w_kind_key(self):
'rrsetAdditionsPerChange': str(RRSET_ADDITIONS),
'rrsetDeletionsPerChange': str(RRSET_DELETIONS),
'totalRrdataSizePerChange': str(TOTAL_SIZE),
'whitelistedKeySpecs': [{"x":"y","a":"b"},{"x":"y","z":"a"}]
}
}
CONVERTED = {key: int(value)
for key, value in DATA['quota'].items()}
for key, value in DATA['quota'].items()
if type(value) is not list}
WITH_KIND = {'quota': DATA['quota'].copy()}
WITH_KIND['quota']['kind'] = 'dns#quota'
creds = _make_credentials()
Expand Down