modified: netbox_dns_bridge/__init__.py
modified: netbox_dns_bridge/catalog_zone_manager.py modified: netbox_dns_bridge/notify_handler.py
This commit is contained in:
1 parent
5747b044b6
commit
3eb17187b4
3 files changed
+7
-7
No files matched your search
@@ -38,7 +38,7 @@ def increment_soa_serial() -> int:
|
||||
return soa_serial.value
|
||||
except OperationalError as e:
|
||||
logger.error(
|
||||
f"ERROR: Unable to increment the Catalog Zone's SOA serial: {e}"
|
||||
f"ERROR: Failed to increment the Catalog Zone's SOA serial: {e}"
|
||||
)
|
||||
close_old_connections()
|
||||
|
||||
@@ -108,7 +108,7 @@ def create_zone(name, view_name) -> dns.zone.Zone:
|
||||
return zone
|
||||
|
||||
except OperationalError as e:
|
||||
logger.error(f"ERROR: Unable to create Catalog Zone: {e}")
|
||||
logger.error(f"ERROR: Failed to create Catalog Zone: {e}")
|
||||
close_old_connections()
|
||||
return None
|
||||
|
||||
@@ -123,7 +123,7 @@ def _init_soa_serial() -> None:
|
||||
"Catalog zone SOA serial number was not set in the database. Set to 1"
|
||||
)
|
||||
except OperationalError as e:
|
||||
logger.error(f"ERROR: Unable to initialize the Catalog Zone's SOA serial: {e}")
|
||||
logger.error(f"ERROR: Failed to initialize the Catalog Zone's SOA serial: {e}")
|
||||
close_old_connections()
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ def update_member_identifier(zone: Zone) -> None:
|
||||
defaults={"name": _generate_member_identifier()},
|
||||
)
|
||||
except OperationalError as e:
|
||||
logger.error(f"ERROR: Unable to update Catalog Zone member identifier: {e}")
|
||||
logger.error(f"ERROR: Failed to update Catalog Zone member identifier: {e}")
|
||||
close_old_connections()
|
||||
|
||||
|
||||
@@ -201,7 +201,7 @@ def _create_soa_rdataset() -> dns.rdataset:
|
||||
return rdataset
|
||||
|
||||
except OperationalError as e:
|
||||
logger.error(f"ERROR: Unable to access catz SOA record in database: {e}")
|
||||
logger.error(f"ERROR: Failed to access catz SOA record in database: {e}")
|
||||
close_old_connections()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user