modified: netbox_dns_bridge/catalog_zone_manager.py

modified:   netbox_dns_bridge/utils.py
Black reformat
This commit is contained in:
Sven Luthi committed 2026-08-11 12:22:52 +02:00
1 parent 8b5ecce44d
commit a4232eacaa
2 files changed
+7 -7

No files matched your search

+6 -5
View File
@@ -15,11 +15,12 @@ LOGGER = get_logger(__name__)
def increment_soa_serial() -> int:
with transaction.atomic():
try:
soa_serial_obj, _ = (
IntegerKeyValueSetting.objects.select_for_update().get_or_create(
key="catalog-zone-soa-serial",
defaults={"value": 1},
)
(
soa_serial_obj,
_,
) = IntegerKeyValueSetting.objects.select_for_update().get_or_create(
key="catalog-zone-soa-serial",
defaults={"value": 1},
)
new_soa_serial = soa_serial_obj.value + 1