Skip to content

Commit 0a295d2

Browse files
authored
Update record.py
move variable to record kwargs
1 parent 4002758 commit 0a295d2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

examples/dns/record.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
if zone_id is None:
77
sys.exit("CLOUDFLARE_ZONE_ID is not defined")
88

9-
alias_name = "www.mydns.com"
10-
cannonical_name = "cname.example.com"
11-
129

1310
client = Cloudflare()
1411

@@ -17,8 +14,8 @@
1714
record = client.dns.records.create(
1815
zone_id=zone_id,
1916
type='CNAME',
20-
name=alias_name,
21-
content=cannonical_name,
17+
name="www.mydns.com",
18+
content="cname.example.com",
2219
proxied=False
2320
)
2421

0 commit comments

Comments
 (0)