-
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
I know DNS is not oficially supported yet, but I'm reporting it anyway. I'm using the master gcloud-python
repo with this code:
client = dns.Client.from_service_account_json(
'service-account.json', project='xyz-eu')
zones = client.list_zones()
This is the error I get:
Traceback (most recent call last):
..
zones = client.list_zones()
File "/app/src/gcloud/gcloud/dns/client.py", line 94, in list_zones
for resource in resp['managedZones']]
File "/app/src/gcloud/gcloud/dns/zone.py", line 67, in from_api_repr
zone._set_properties(resource)
File "/app/src/gcloud/gcloud/dns/zone.py", line 218, in _set_properties
cleaned['creationTime'] = float(cleaned['creationTime'])
ValueError: invalid literal for float(): 2015-04-02T13:21:24.943Z
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.