Only copy over keyword args if they're set (fixes bug in 'check' which does not supply args.vpp_*)
This commit is contained in:
4
vppcfg
4
vppcfg
@ -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":
|
||||||
|
Reference in New Issue
Block a user