Skip to content

Commit

Permalink
fix(provider/cf): fix stop server group state checking (#4661)
Browse files Browse the repository at this point in the history
Co-authored-by: Zach Smith <zachsmith@ip-192-168-1-69.us-west-2.compute.internal>
  • Loading branch information
zachsmith1 and Zach Smith committed Jun 5, 2020
1 parent 1c7fc05 commit e7152e0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public Void operate(List priorOutputs) {
ProcessStats.State state =
operationPoller.waitForOperation(
() -> client.getApplications().getProcessState(description.getServerGroupId()),
inProgressState -> inProgressState != ProcessStats.State.STARTING,
inProgressState ->
inProgressState != ProcessStats.State.STARTING
&& inProgressState != ProcessStats.State.RUNNING,
null,
getTask(),
description.getServerGroupName(),
Expand Down

0 comments on commit e7152e0

Please sign in to comment.