mirror of
https://github.com/Telecominfraproject/ols-ucentral-schema.git
synced 2025-11-02 11:08:00 +00:00
cmd_script: add an additional return json when upload was triggered
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -76,7 +76,9 @@ if (abort)
|
||||
"result": "timed out"
|
||||
};
|
||||
|
||||
if (args.uri)
|
||||
if (args.uri) {
|
||||
ctx.call("ucentral", "upload", {file: out, uri: args.uri, uuid: args.serial});
|
||||
else
|
||||
result_json({ error: 0,
|
||||
result: 'done'});
|
||||
} else
|
||||
result_json(result);
|
||||
|
||||
Reference in New Issue
Block a user