Only mock config for vppcfg plan

This commit is contained in:
Pim van Pelt
2023-07-05 17:50:02 +02:00
parent 2396b96252
commit b4c5a8d337

View File

@ -244,7 +244,7 @@ def main():
sys.exit(0) sys.exit(0)
reconciler = Reconciler(cfg, **opt_kwargs) reconciler = Reconciler(cfg, **opt_kwargs)
if args.novpp: if args.command == "plan" and args.novpp:
if not reconciler.vpp.mockconfig(cfg): if not reconciler.vpp.mockconfig(cfg):
sys.exit(-7) sys.exit(-7)
else: else: