1
0
mirror of https://github.com/oskar456/dzonegit.git synced 2024-05-11 05:55:41 +00:00

Report details about serial number difference

This commit is contained in:
Ondřej Caletka
2018-07-12 15:54:01 +02:00
parent 0e45c7f980
commit 4f4c301152

View File

@@ -221,9 +221,13 @@ def check_updated_zones(against, revision=None):
if (rold.success and rold.zonehash != rnew.zonehash and not
is_serial_increased(rold.serial, rnew.serial)):
errmsg = "Old revision {}, serial {}, new serial {}".format(
against, rold.serial, rnew.serial,
)
raise HookException(
"Zone contents changed without increasing serial",
fname=f,
stderr=errmsg,
)
except subprocess.CalledProcessError:
pass # Old version of zone did not exist