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:
@@ -221,9 +221,13 @@ def check_updated_zones(against, revision=None):
|
|||||||
|
|
||||||
if (rold.success and rold.zonehash != rnew.zonehash and not
|
if (rold.success and rold.zonehash != rnew.zonehash and not
|
||||||
is_serial_increased(rold.serial, rnew.serial)):
|
is_serial_increased(rold.serial, rnew.serial)):
|
||||||
|
errmsg = "Old revision {}, serial {}, new serial {}".format(
|
||||||
|
against, rold.serial, rnew.serial,
|
||||||
|
)
|
||||||
raise HookException(
|
raise HookException(
|
||||||
"Zone contents changed without increasing serial",
|
"Zone contents changed without increasing serial",
|
||||||
fname=f,
|
fname=f,
|
||||||
|
stderr=errmsg,
|
||||||
)
|
)
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
pass # Old version of zone did not exist
|
pass # Old version of zone did not exist
|
||||||
|
|||||||
Reference in New Issue
Block a user