diff --git a/examples/dns/record.py b/examples/dns/record.py index 7aa23931c2c..3794ac905b0 100644 --- a/examples/dns/record.py +++ b/examples/dns/record.py @@ -1,26 +1,20 @@ import os import sys - from cloudflare import Cloudflare - zone_id = os.getenv("CLOUDFLARE_ZONE_ID") if zone_id is None: sys.exit("CLOUDFLARE_ZONE_ID is not defined") - client = Cloudflare() - -# create dns using defined driver record = client.dns.records.create( zone_id=zone_id, type='CNAME', name="www.mydns.com", content="cname.example.com", proxied=False - ) +) -# print output -print(record) +# print(record)