Commit b1cbda4f authored by Valentin Samir's avatar Valentin Samir

Make sur the current ZSK inactive date is at least in INTERVAL then generating succesor

parent d2b910e5
......@@ -112,7 +112,10 @@ class Zone(object):
if zsk.is_activate:
zsk.inactive = zsk.activate + ZSK_VALIDITY
zsk.delete = zsk.inactive + INTERVAL
now = datetime.datetime.utcnow()
if zsk.is_activate:
zsk.inactive = max(zsk.inactive, now + INTERVAL)
zsk.delete = zsk.inactive + INTERVAL
zsk.gen_successor()
bind_reload()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment