Only write output if in planning mode

This commit is contained in:
Pim van Pelt
2022-04-03 11:05:50 +00:00
parent 566efe3596
commit b67493003f

3
vppcfg
View File

@ -108,7 +108,8 @@ def main():
failed = True
logging.warning("Planning sync failure, continuing due to --force")
r.write(args.outfile, ok=not failed)
if args.command=="plan":
r.write(args.outfile, ok=not failed)
if failed:
logging.error("Planning failed")