summaryrefslogtreecommitdiffstats
path: root/controlloop/common/eventmanager/src
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2018-01-19 18:56:33 +0000
committerGerrit Code Review <gerrit@onap.org>2018-01-19 18:56:33 +0000
commit7b6f0942e355b0405bc47e2e4d276e43c63edde1 (patch)
tree13edb6d3ad7f4939793e7e2a56293297e08e9d53 /controlloop/common/eventmanager/src
parentaea5bb6c44470a38ef7c7012b6c8cd3646e8cc96 (diff)
parentcef733a2902a600c1b4a95ef11b2f4ffc0fcbf99 (diff)
Merge "Fix Technical Debt, add Unit tests for SO"
Diffstat (limited to 'controlloop/common/eventmanager/src')
-rw-r--r--controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopOperationManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopOperationManager.java b/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopOperationManager.java
index acbacc824..8160f76fa 100644
--- a/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopOperationManager.java
+++ b/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopOperationManager.java
@@ -423,13 +423,13 @@ public class ControlLoopOperationManager implements Serializable {
} else if (response instanceof SOResponseWrapper) {
SOResponseWrapper msoResponse = (SOResponseWrapper) response;
- switch (msoResponse.SOResponse.httpResponseCode) {
+ switch (msoResponse.getSoResponse().getHttpResponseCode()) {
case 200:
case 202:
//
// Consider it as success
//
- this.completeOperation(this.attempts, msoResponse.SOResponse.httpResponseCode + " Success", PolicyResult.SUCCESS);
+ this.completeOperation(this.attempts, msoResponse.getSoResponse().getHttpResponseCode() + " Success", PolicyResult.SUCCESS);
if (this.policyResult != null && this.policyResult.equals(PolicyResult.FAILURE_TIMEOUT)) {
return null;
}
@@ -438,7 +438,7 @@ public class ControlLoopOperationManager implements Serializable {
//
// Consider it as failure
//
- this.completeOperation(this.attempts, msoResponse.SOResponse.httpResponseCode + " Failed", PolicyResult.FAILURE);
+ this.completeOperation(this.attempts, msoResponse.getSoResponse().getHttpResponseCode() + " Failed", PolicyResult.FAILURE);
if (this.policyResult != null && this.policyResult.equals(PolicyResult.FAILURE_TIMEOUT)) {
return null;
}