Only copy over keyword args if they're set (fixes bug in 'check' which does not supply args.vpp_*)

This commit is contained in:
Pim van Pelt
2022-05-01 17:47:11 +00:00
parent 2ce5fc58e7
commit a69a49d6f6

4
vppcfg
View File

@ -199,9 +199,9 @@ def main():
) )
opt_kwargs = {} opt_kwargs = {}
if args.vpp_json_dir: if 'vpp_json_dir' in args:
opt_kwargs["vpp_json_dir"] = args.vpp_json_dir opt_kwargs["vpp_json_dir"] = args.vpp_json_dir
if args.vpp_api_socket: if 'vpp_api_socket' in args:
opt_kwargs["vpp_api_socket"] = args.vpp_api_socket opt_kwargs["vpp_api_socket"] = args.vpp_api_socket
if args.command == "dump": if args.command == "dump":