From bbe95e5f5b93965c53a1c1976345ddec6d2fca9f Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Mon, 11 Sep 2017 12:56:45 +0530 Subject: Fix to consider 404 for delete success code CLI-5 Change-Id: I99e0cf1ee39ce967d1d1f470b2df51f3378adeb5 Signed-off-by: Kanagaraj Manickam k00365106 --- framework/src/main/java/org/onap/cli/fw/utils/OnapCommandUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'framework') 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); + } } } -- cgit 1.2.3-korg