modified: netbox_dns_bridge/catalog_zone_manager.py
modified: netbox_dns_bridge/utils.py Black reformat
This commit is contained in:
1 parent
2276d770d1
commit
edd57dd6f7
2 files changed
+7
-7
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user