aboutsummaryrefslogtreecommitdiffstats
path: root/appc-adapters/appc-iaas-adapter
diff options
context:
space:
mode:
authorTaka <tc012c@att.com>2018-01-11 17:05:09 -0500
committerPatrick Brady <pb071s@att.com>2018-01-11 22:13:36 +0000
commit63853912674b5f6cddc6a1248ee2fa61436a41f8 (patch)
tree91e04d26ac6efa18f2947387b33336057aa3a40d /appc-adapters/appc-iaas-adapter
parent7ec13a9903945b737465410fb8426e163b0c469a (diff)
Replaced to private String definition
Change-Id: Ibd5d9f63ea1fda33eccc69a9604c66c9d24733ff Issue-ID: APPC-394 Signed-off-by: Taka <tc012c@att.com>
Diffstat (limited to 'appc-adapters/appc-iaas-adapter')
-rw-r--r--appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/TerminateStack.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/TerminateStack.java b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/TerminateStack.java
index 1e3ce1e68..1909d8c40 100644
--- a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/TerminateStack.java
+++ b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/TerminateStack.java
@@ -48,6 +48,7 @@ import static org.onap.appc.adapter.utils.Constants.ADAPTER_NAME;
public class TerminateStack extends ProviderStackOperation {
+ private static final String TERMINATE_STATUS = "TERMINATE_STATUS";
private static final EELFLogger logger = EELFManager.getInstance().getLogger(EvacuateServer.class);
private void deleteStack(RequestContext rc, Stack stack) throws ZoneException, RequestFailedException {
@@ -60,9 +61,9 @@ public class TerminateStack extends ProviderStackOperation {
// wait for the stack deletion
boolean success = waitForStackStatus(rc, stack, Stack.Status.DELETED);
if (success) {
- ctx.setAttribute("TERMINATE_STATUS", "SUCCESS");
+ ctx.setAttribute(TERMINATE_STATUS, "SUCCESS");
} else {
- ctx.setAttribute("TERMINATE_STATUS", "ERROR");
+ ctx.setAttribute(TERMINATE_STATUS, "ERROR");
throw new RequestFailedException("Delete Stack failure : " + Msg.STACK_OPERATION_EXCEPTION.toString());
}
}
@@ -74,7 +75,7 @@ public class TerminateStack extends ProviderStackOperation {
RequestContext rc = new RequestContext(ctx);
rc.isAlive();
- ctx.setAttribute("TERMINATE_STATUS", "STACK_NOT_FOUND");
+ ctx.setAttribute(TERMINATE_STATUS, "STACK_NOT_FOUND");
String appName = configuration.getProperty(Constants.PROPERTY_APPLICATION_NAME);
try {