Skip to content

Commit

Permalink
add updatedRequest in client
Browse files Browse the repository at this point in the history
  • Loading branch information
ssalinas committed Apr 1, 2016
1 parent 47a0230 commit e3cafa8
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -480,10 +480,14 @@ public void exitCooldown(String requestId, Optional<SingularityExitCooldownReque
//

public SingularityRequestParent createDeployForSingularityRequest(String requestId, SingularityDeploy pendingDeploy, Optional<Boolean> deployUnpause, Optional<String> message) {
return createDeployForSingularityRequest(requestId, pendingDeploy, deployUnpause, message, Optional.<SingularityRequest>absent());
}

public SingularityRequestParent createDeployForSingularityRequest(String requestId, SingularityDeploy pendingDeploy, Optional<Boolean> deployUnpause, Optional<String> message, Optional<SingularityRequest> updatedRequest) {
final String requestUri = String.format(DEPLOYS_FORMAT, getHost(), contextPath);

HttpResponse response = post(requestUri, String.format("new deploy %s", new SingularityDeployKey(requestId, pendingDeploy.getId())),
Optional.of(new SingularityDeployRequest(pendingDeploy, deployUnpause, message)));
Optional.of(new SingularityDeployRequest(pendingDeploy, deployUnpause, message, updatedRequest)));

return getAndLogRequestAndDeployStatus(response.getAs(SingularityRequestParent.class));
}
Expand Down

0 comments on commit e3cafa8

Please sign in to comment.