mirror of
https://github.com/Fishwaldo/rundeck-api-java-client.git
synced 2025-07-11 23:48:33 +00:00
getExecution handles buggy xml wrapper
This commit is contained in:
parent
39fd86ae6d
commit
1f2ffeebac
1 changed files with 9 additions and 2 deletions
|
@ -1622,8 +1622,15 @@ public class RundeckClient implements Serializable {
|
|||
public RundeckExecution getExecution(Long executionId) throws RundeckApiException, RundeckApiLoginException,
|
||||
RundeckApiTokenException, IllegalArgumentException {
|
||||
AssertUtil.notNull(executionId, "executionId is mandatory to get the details of an execution !");
|
||||
return new ApiCall(this).get(new ApiPathBuilder("/execution/", executionId.toString()),
|
||||
new ExecutionParser(rootXpath()+"/executions/execution"));
|
||||
return new ApiCall(this).get(
|
||||
new ApiPathBuilder("/execution/", executionId.toString()),
|
||||
APIV11Helper.unwrapIfNeeded(
|
||||
new ExecutionParser(
|
||||
rootXpath() + "/executions/execution"
|
||||
),
|
||||
rootXpath() + "/executions/execution"
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue