Skip to content

Commit 520a260

Browse files
committed
chore(examples): fix DNS record example
1 parent 4423d8f commit 520a260

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/dns/record.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111

1212
record = client.dns.records.create(
1313
zone_id=zone_id,
14-
type='A',
14+
type="A",
1515
name="www.mydns.com",
1616
content="198.51.100.1",
17-
proxied=True
17+
proxied=True,
1818
)
19+
assert record is not None
1920

2021
# clean up after we're done
2122
client.dns.records.delete(
2223
zone_id=zone_id,
23-
dns_record_id=record['id']
24+
dns_record_id=record.id,
2425
)

0 commit comments

Comments
 (0)