mirror of https://github.com/apache/jclouds.git
fixed a cloudservers bug
This commit is contained in:
parent
f63c5a44c6
commit
fe7d426e2e
|
@ -63,14 +63,15 @@ public final class GetImageWhenStatusActivePredicateWithResult implements Predic
|
||||||
result = checkNotNull(findImage(input));
|
result = checkNotNull(findImage(input));
|
||||||
switch (result.getStatus()) {
|
switch (result.getStatus()) {
|
||||||
case ACTIVE:
|
case ACTIVE:
|
||||||
logger.info("<< Image %s is available for use.", input);
|
logger.info("<< Image %s is available for use. %s", input, result);
|
||||||
return true;
|
return true;
|
||||||
case QUEUED:
|
case QUEUED:
|
||||||
|
case PREPARING:
|
||||||
case SAVING:
|
case SAVING:
|
||||||
logger.debug("<< Image %s is not available yet.", input);
|
logger.debug("<< Image %s is not available yet. %s", input, result);
|
||||||
return false;
|
return false;
|
||||||
default:
|
default:
|
||||||
lastFailure = new IllegalStateException("Image was not created: " + input);
|
lastFailure = new IllegalStateException("Image " + input + " was not created. " + result);
|
||||||
throw lastFailure;
|
throw lastFailure;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,8 +138,8 @@ public class Image {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "Image [created=" + created + ", id=" + id + ", name=" + name + ", serverId="
|
return "Image [created=" + created + ", id=" + id + ", name=" + name + ", serverId=" + serverId + ", status="
|
||||||
+ serverId + "]";
|
+ status + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue