Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit b62a027

Browse files
committed
#193 type in code fixed - plus one more line edited to bring consistency into code examples
1 parent e6cfe7f commit b62a027

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ def main():
203203
exit('No zones found')
204204
205205
# extract the zone_id which is needed to process that zone
206-
zone = zones[0]
207-
zone_id = zone['id']
206+
zone_id = zones[0]['id']
208207
209208
# request the DNS records from that zone
210209
try:
@@ -697,7 +696,7 @@ def main():
697696
zone_name = sys.argv[1]
698697
cf = CloudFlare.CloudFlare()
699698
zone_info = cf.zones.get(params={'name': zone_name})
700-
zone_id = zone_info['id']
699+
zone_id = zone_info[0]['id']
701700
702701
dns_name = sys.argv[2]
703702
dns_records = cf.zones.dns_records.get(zone_id, params={'name':dns_name + '.' + zone_name})

0 commit comments

Comments
 (0)