We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4423d8f commit 520a260Copy full SHA for 520a260
examples/dns/record.py
@@ -11,14 +11,15 @@
11
12
record = client.dns.records.create(
13
zone_id=zone_id,
14
- type='A',
+ type="A",
15
name="www.mydns.com",
16
content="198.51.100.1",
17
- proxied=True
+ proxied=True,
18
)
19
+assert record is not None
20
21
# clean up after we're done
22
client.dns.records.delete(
23
- dns_record_id=record['id']
24
+ dns_record_id=record.id,
25
0 commit comments