Use a “complete” action for the last step of ad-hoc commands instead of next
This commit is contained in:
@@ -80,6 +80,9 @@ XmlNode AdhocCommandsHandler::handle_request(const std::string& executor_jid, co
|
||||
{
|
||||
command_node["status"] = "executing";
|
||||
XmlSubNode actions(command_node, "actions");
|
||||
if (session.remaining_steps() == 1)
|
||||
XmlSubNode next(actions, "complete");
|
||||
else
|
||||
XmlSubNode next(actions, "next");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user