summaryrefslogtreecommitdiffstats
path: root/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src
diff options
context:
space:
mode:
authorJegadeesh Babu <jegabab1@in.ibm.com>2019-03-15 16:45:40 +0530
committerTakamune Cho <takamune.cho@att.com>2019-03-18 17:04:20 +0000
commit6e55c213695fa0d11b679c0f3bf96b4d3b034c93 (patch)
treeba4a059b628acc82157b6a875ad69b0b2006de3c /appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src
parent0ce69b05291999c4bbf297ee0481ec8e991eebfd (diff)
Replaced hardcoded value with constant defined
Sonar fix Issue-ID: APPC-1539 Change-Id: Id3891e50bdf89799d1310b37c80ca920d7bdc02c Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
Diffstat (limited to 'appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src')
-rw-r--r--appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/impl/ChefAdapterImpl.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/impl/ChefAdapterImpl.java b/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/impl/ChefAdapterImpl.java
index 8d754e791..1a21c750c 100644
--- a/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/impl/ChefAdapterImpl.java
+++ b/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/impl/ChefAdapterImpl.java
@@ -6,6 +6,8 @@
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
+ * Modifications Copyright (C) 2019 IBM
+ * =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -578,8 +580,8 @@ public class ChefAdapterImpl implements ChefAdapter {
if ("complete".equals(status)) {
if (hasFailedNode(message)) {
String finalMessage = "PushJob Status Complete but check failed nodes in the message :" + message;
- svcLogic.setAttribute("chefServerResult.code", APPC_ERRORCODE.toString());
- svcLogic.setAttribute("chefServerResult.message", finalMessage);
+ svcLogic.setAttribute(CHEF_SERVER_RESULT_CODE_STR, APPC_ERRORCODE.toString());
+ svcLogic.setAttribute(CHEF_SERVER_RESULT_MSG_STR, finalMessage);
} else {
svcLogic.setAttribute(CHEF_SERVER_RESULT_CODE_STR, STATUS_OK.toString());
svcLogic.setAttribute(CHEF_SERVER_RESULT_MSG_STR, message);