Commit 8951a977 authored by godog's avatar godog

main: exit 0 only when zones have changed

parent b1b40111
Pipeline #2006 passed with stage
in 23 seconds
......@@ -74,7 +74,12 @@ def main():
dry_run=opts.dry_run,
update_policies=opts.update_policies)
changed, removed = zw.write(zp.render(), postproc=pproc)
sys.exit(0)
# Success is defined as having changed bind config
if not opts.dry_run and (len(changed) + len(removed) > 0):
sys.exit(0)
else:
sys.exit(1)
if __name__ == '__main__':
......
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