Skip to content

Commit

Permalink
Merge pull request cloudflare#149 from huangsen365/patch-1
Browse files Browse the repository at this point in the history
Update example_dns_export.py - updated zone_name
  • Loading branch information
mahtin committed Oct 2, 2022
2 parents e5ebd91 + 515dff2 commit 0d831d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/example_dns_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def main():
try:
dns_records = cf.zones.dns_records.export.get(zone_id)
except CloudFlare.exceptions.CloudFlareAPIError as e:
exit('/zones/dns_records/export %s - %d %s - api call failed' % (dns_name, e, e))
exit('/zones/dns_records/export %s - %d %s - api call failed' % (zone_name, e, e))

for l in dns_records.splitlines():
if len(l) == 0 or l[0] == ';':
Expand Down

0 comments on commit 0d831d8

Please sign in to comment.