Fix a little bug in running "modules list".

(cherry picked from commit 5dddef6f49)
This commit is contained in:
Chris Lumens 2018-08-10 09:50:15 -04:00
parent 3a89828faf
commit 312faf6275

View File

@ -38,7 +38,7 @@ def modules_cmd(opts):
api_route = client.api_url(opts.api_version, "/modules/list") api_route = client.api_url(opts.api_version, "/modules/list")
result = client.get_url_json(opts.socket, api_route) result = client.get_url_json(opts.socket, api_route)
(rc, exit_now) = handle_api_result(result, opts.show_json) (rc, exit_now) = handle_api_result(result, opts.json)
if exit_now: if exit_now:
return rc return rc