Skip to content

Commit

Permalink
Update record.py
Browse files Browse the repository at this point in the history
move variable to record kwargs
  • Loading branch information
mftzk authored Jul 30, 2024
1 parent 4002758 commit 0a295d2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions examples/dns/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
if zone_id is None:
sys.exit("CLOUDFLARE_ZONE_ID is not defined")

alias_name = "www.mydns.com"
cannonical_name = "cname.example.com"


client = Cloudflare()

Expand All @@ -17,8 +14,8 @@
record = client.dns.records.create(
zone_id=zone_id,
type='CNAME',
name=alias_name,
content=cannonical_name,
name="www.mydns.com",
content="cname.example.com",
proxied=False
)

Expand Down

0 comments on commit 0a295d2

Please sign in to comment.