summaryrefslogtreecommitdiffstats
path: root/saltstack-adapter/saltstack-adapter-provider
diff options
context:
space:
mode:
authorRupinder <rupinsi1@in.ibm.com>2020-04-02 12:51:23 +0530
committerRupinderjeet Singh <rupinsi1@in.ibm.com>2020-04-07 17:15:04 +0000
commitc3c435eb583ca80e3626a6811a0dce3ac7bd7411 (patch)
treeb99e7d309201c27314c7378e6324f9ff3c5b669e /saltstack-adapter/saltstack-adapter-provider
parent3280b56349c8e5a3e00fdce2ff62b58b0d9e6508 (diff)
removed code smells
Reduced the code smells Issue-ID: CCSDK-2232 Change-Id: I30eec021ba50f28dc1df2fd554c4e349c4a76dd6 Signed-off-by: Rupinder<rupinsi1@in.ibm.com>
Diffstat (limited to 'saltstack-adapter/saltstack-adapter-provider')
-rw-r--r--saltstack-adapter/saltstack-adapter-provider/src/main/java/org/onap/ccsdk/sli/adaptors/saltstack/model/SaltstackMessageParser.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/saltstack-adapter/saltstack-adapter-provider/src/main/java/org/onap/ccsdk/sli/adaptors/saltstack/model/SaltstackMessageParser.java b/saltstack-adapter/saltstack-adapter-provider/src/main/java/org/onap/ccsdk/sli/adaptors/saltstack/model/SaltstackMessageParser.java
index 50d08e23a..3bb401ad4 100644
--- a/saltstack-adapter/saltstack-adapter-provider/src/main/java/org/onap/ccsdk/sli/adaptors/saltstack/model/SaltstackMessageParser.java
+++ b/saltstack-adapter/saltstack-adapter-provider/src/main/java/org/onap/ccsdk/sli/adaptors/saltstack/model/SaltstackMessageParser.java
@@ -307,7 +307,8 @@ public class SaltstackMessageParser {
public SaltstackResult parseResponse(SvcLogicContext ctx, String pfx,
SaltstackResult saltstackResult, boolean slsExec) throws IOException {
int code = saltstackResult.getStatusCode();
- boolean executionStatus = true, retCodeFound = false;
+ boolean executionStatus = true;
+ boolean retCodeFound = false;
if (code != SaltstackResultCodes.SUCCESS.getValue()) {
return saltstackResult;
}