Skip to content

Commit

Permalink
Merge pull request #149 from peteeckel/fix/disable_ptr-default-value
Browse files Browse the repository at this point in the history
Fixed default value if disable_ptr is None
  • Loading branch information
peteeckel authored Jan 24, 2024
2 parents b4c3d64 + 6c29dac commit a04839e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions netbox_dns/utilities/ipam_coupling.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class DNSPermissionDenied(Exception):
def ipaddress_cf_data(ip_address):
name = ip_address.custom_field_data.get("ipaddress_dns_record_name")
ttl = ip_address.custom_field_data.get("ipaddress_dns_record_ttl")
disable_ptr = ip_address.custom_field_data.get(
"ipaddress_dns_record_disable_ptr", False
)
disable_ptr = ip_address.custom_field_data.get("ipaddress_dns_record_disable_ptr")
if disable_ptr is None:
disable_ptr = False
zone_id = ip_address.custom_field_data.get("ipaddress_dns_zone_id")

if name is None or zone_id is None:
Expand Down

0 comments on commit a04839e

Please sign in to comment.