[ 
https://issues.apache.org/jira/browse/LIBCLOUD-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16852168#comment-16852168
 ] 

Clemens Wolff commented on LIBCLOUD-994:
----------------------------------------

Just confirmed that this is fixed by [PR 
1292|https://github.com/apache/libcloud/pull/1292].

> traceback when listing records in an empty zone on cloudflare
> -------------------------------------------------------------
>
>                 Key: LIBCLOUD-994
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-994
>             Project: Libcloud
>          Issue Type: Bug
>          Components: DNS
>            Reporter: Glyph Lefkowitz
>            Priority: Major
>
> Register for a new cloudflare account, make a new zone, don't put anything 
> into it, and then try to list its records:
>  
> {{  File "libcloud/dns/base.py", line 64, in list_records}}
> {{    return self.driver.list_records(zone=self)}}
> {{  File "libcloud/dns/base.py", line 236, in list_records}}
> {{    return list(self.iterate_records(zone))}}
> {{  File "libcloud/dns/drivers/cloudflare.py", line 156, in iterate_records}}
> {{    data = resp.object['response']['recs']['objs']}}
> {{builtins.KeyError: 'objs'}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to