mirror of
https://github.com/Telecominfraproject/ols-ucentral-schema.git
synced 2025-10-30 01:32:26 +00:00
schema: fix id reporting inside the command handler
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -31,13 +31,13 @@ function result(code, fmt, ...args) {
|
||||
"status": {
|
||||
"error": code,
|
||||
"text": text
|
||||
}
|
||||
}, "id": +id
|
||||
});
|
||||
warn(text + "\n");
|
||||
}
|
||||
|
||||
function result_json(status) {
|
||||
ctx.call("ucentral", "result", {"id": id, "status": status});
|
||||
ctx.call("ucentral", "result", {"id": +id, "status": status});
|
||||
if (status.text)
|
||||
warn(status.text + "\n");
|
||||
if (status.resultText)
|
||||
|
||||
Reference in New Issue
Block a user