Lines Matching refs:ret_json

526         ret_json = {"status": status}
530 ret_json["errors"] = [errors]
532 ret_json["errors"] = errors
534 ret_json["data"] = data
538 jsonschema.validate(ret_json, op_schema)
544 ret_json["schema"] = schema
546 return ret_json
1612 ret_json = _set_pub_error_wrap(_add_update_pub, name, [],
1628 if "errors" in ret_json:
1629 for err in ret_json["errors"]:
1631 return __prepare_json(ret_json["status"], errors=errors_json)
1644 ret_json = None
1646 ret_json = _set_pub_error_wrap(get_pubs, name,
1654 if ret_json["status"] != EXIT_OK and "errors" in ret_json:
1655 for err in ret_json["errors"]:
1658 return __prepare_json(ret_json["status"],
1663 if "data" not in ret_json:
1671 pubs = ret_json["data"]
1710 ret_json = _set_pub_error_wrap(_add_update_pub, name,
1721 if ret_json["status"] == EXIT_OK:
1777 ret_json = _set_pub_error_wrap(_add_update_pub, name,
1785 if ret_json["status"] == EXIT_OK:
1788 if ret_json["status"] != EXIT_OK:
1789 for err in ret_json["errors"]:
1826 ret_json = __refresh(api_inst, added + updated)
1827 ret_json["data"] = data
1828 return ret_json
2998 _api_inst, ret_json = func(subcommand, pargs_json,
3015 ret_json = __prepare_json(EXIT_OOPS,
3026 ret_json = __prepare_json(EXIT_OOPS)
3030 ret_json = __prepare_json(__e.lix_exitrv, errors=errors_json)
3035 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3040 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3045 ret_json = __prepare_json(EXIT_LOCKED, errors=errors_json)
3056 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3064 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3075 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3085 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3095 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3104 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3113 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3115 ret_json = __prepare_json(EXIT_OK)
3119 ret_json = __handle_errors_json(_wrapper, non_wrap_print=False)
3122 if ret_json["status"] == 99:
3129 if "errors" in ret_json:
3130 ret_json["errors"].extend(errors_json)
3132 ret_json["errors"] = errors_json
3136 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3139 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3142 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3145 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3148 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3156 ret_json = __prepare_json(99, errors=errors_json)
3167 return _api_inst, ret_json
3191 _api_inst, ret_json = __handle_errors_json(__pkg,
3197 return _api_inst, ret_json
3199 return ret_json
3216 _api_inst, ret_json = _pkg_invoke(cmd, pargs_json=pargs_json,
3222 return ret_json