Trigger job handles buggy api v11 response

This commit is contained in:
Greg Schueler 2014-11-10 11:16:01 -08:00
parent bceb1ec4c6
commit 39fd86ae6d

View file

@ -1085,7 +1085,16 @@ public class RundeckClient implements Serializable {
if(null!=jobRun.getAsUser()) {
apiPath.param("asUser", jobRun.getAsUser());
}
return new ApiCall(this).get(apiPath, new ExecutionParser(rootXpath()+"/executions/execution"));
return new ApiCall(this).get(apiPath,
APIV11Helper.unwrapIfNeeded(
new ExecutionParser(
rootXpath() +
"/executions/execution"
), rootXpath() +
"/executions/execution"
)
);
}