Commit cda1ad46 authored by louiz’'s avatar louiz’

Use a “complete” action for the last step of ad-hoc commands instead of next

parent 224eb922
......@@ -80,7 +80,10 @@ XmlNode AdhocCommandsHandler::handle_request(const std::string& executor_jid, co
{
command_node["status"] = "executing";
XmlSubNode actions(command_node, "actions");
XmlSubNode next(actions, "next");
if (session.remaining_steps() == 1)
XmlSubNode next(actions, "complete");
else
XmlSubNode next(actions, "next");
}
}
else if (session_it != this->sessions.end() && action == "cancel")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment