Skip to content

Commit

Permalink
ProvisioningStateStrategy should not poll if there is no provisioning…
Browse files Browse the repository at this point in the history
…State property (Azure#487)
  • Loading branch information
anuchandy authored and jianghaolu committed Aug 31, 2018
1 parent 5fca66e commit b88ae31
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public final class OperationState {
* @return Whether or not the provided operation state represents a completed state.
*/
public static boolean isCompleted(String operationState) {
return SUCCEEDED.equalsIgnoreCase(operationState)
return operationState == null
|| operationState.length() == 0
|| SUCCEEDED.equalsIgnoreCase(operationState)
|| isFailedOrCanceled(operationState);
}

Expand Down

0 comments on commit b88ae31

Please sign in to comment.