def __handle_client_json_api_output(out_json, op, api_inst):
"""This is the main client_json_api output handling function used for
install, update and uninstall and so on."""
if "errors" in out_json:
_generate_error_messages(out_json["status"],
out_json["errors"], cmd=op)
if "data" in out_json and "repo_status" in out_json["data"]:
display_repo_failures(out_json["data"]["repo_status"])
__display_plan_messages(api_inst, frozenset([OP_STAGE_PREP,
OP_STAGE_EXEC]))
return out_json["status"]
评论列表
文章目录