summaryrefslogtreecommitdiffstats
path: root/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle
diff options
context:
space:
mode:
Diffstat (limited to 'appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle')
-rw-r--r--appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/RebootServer.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/RebootServer.java b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/RebootServer.java
index c08e584de..a0f09b56b 100644
--- a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/RebootServer.java
+++ b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/RebootServer.java
@@ -141,16 +141,11 @@ public class RebootServer extends ProviderServerOperation {
boolean status = false;
long endTime = System.currentTimeMillis() + (timeout * MILLI_SECONDS);
while (rc.attempt()) {
- if (server.getStatus() != null && server.getStatus().equals(Server.Status.ERROR)) {
- msg = "Device status " + Server.Status.ERROR + " cannot proceed further";
- throw new RequestFailedException("Waiting for State Change", msg, HttpStatus.CONFLICT_409, server);
- } else {
server.waitForStateChange(pollInterval, timeout, desiredStates);
if ((server.getStatus().equals(Server.Status.RUNNING)) || (server.getStatus().equals(Server.Status.READY))) {
status = true;
}
logger.info(server.getStatus() + " status ");
- }
if (status) {
logger.info("Done Trying " + rc.getAttempts() + " attempts");
break;