mirror of https://github.com/apache/jclouds.git
added missing spot state: closed
This commit is contained in:
parent
fb4714cf33
commit
f778dd3987
|
@ -57,8 +57,9 @@ public class SpotInstanceRequestActive implements Predicate<SpotInstanceRequest>
|
||||||
spot = refresh(spot);
|
spot = refresh(spot);
|
||||||
logger.trace("%s: looking for spot state %s: currently: %s", spot.getId(), SpotInstanceRequest.State.ACTIVE,
|
logger.trace("%s: looking for spot state %s: currently: %s", spot.getId(), SpotInstanceRequest.State.ACTIVE,
|
||||||
spot.getState());
|
spot.getState());
|
||||||
if (spot.getState() == SpotInstanceRequest.State.CANCELLED)
|
if (spot.getState() == SpotInstanceRequest.State.CANCELLED
|
||||||
throw new IllegalStateException(String.format("spot request %s cancelled", spot.getId()));
|
|| spot.getState() == SpotInstanceRequest.State.CLOSED)
|
||||||
|
throw new IllegalStateException(String.format("spot request %s %s", spot.getId(), spot.getState()));
|
||||||
if (spot.getFaultCode() != null)
|
if (spot.getFaultCode() != null)
|
||||||
throw new IllegalStateException(String.format("spot request %s fault code(%s) message(%s)", spot.getId(),
|
throw new IllegalStateException(String.format("spot request %s fault code(%s) message(%s)", spot.getId(),
|
||||||
spot.getFaultCode(), spot.getFaultMessage()));
|
spot.getFaultCode(), spot.getFaultMessage()));
|
||||||
|
|
Loading…
Reference in New Issue