aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/main/java/org
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-11 12:56:45 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-11 14:58:42 +0530
commitbbe95e5f5b93965c53a1c1976345ddec6d2fca9f (patch)
tree0b788958092f6da8d7d6da904b4d5fe20fd2bc19 /framework/src/main/java/org
parent708b54c449a2f8aae36132577b8784767acc738f (diff)
Fix to consider 404 for delete success code
CLI-5 Change-Id: I99e0cf1ee39ce967d1d1f470b2df51f3378adeb5 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/main/java/org')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java b/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java
index ec735cfb..d850199d 100644
--- a/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java
+++ b/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java
@@ -988,7 +988,9 @@ public class OnapCommandUtils {
for (Object successCode : requestSuccessCodes) {
Integer code = (Integer) successCode;
if (code < 200 || code >= 300) {
- errorList.add(HTTP_SUCCESS_CODE_INVALID);
+ if ( code != 404) {
+ errorList.add(HTTP_SUCCESS_CODE_INVALID);
+ }
}
}