summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanagaraj M <mkr1481@gmail.com>2019-04-12 17:17:30 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-04-12 17:17:30 +0530
commitf390a250f110eef7a6131b2a294de4c9d9fbb4ad (patch)
treee43f27ef4dae5249b369e064a9cd48855ea98b0a
parentef2df674b69e48111cea22930ad0298ac208c0c9 (diff)
Fix interactive shell
Issue-ID: CLI-154 Change-Id: Ie4dde68c3ae4e11ff0d1c0f6b1550b0f0935e12d Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
-rw-r--r--framework/src/main/java/org/onap/cli/fw/store/OnapCommandProfileStore.java4
-rw-r--r--main/src/main/java/org/onap/cli/main/OnapCli.java1
2 files changed, 3 insertions, 2 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/store/OnapCommandProfileStore.java b/framework/src/main/java/org/onap/cli/fw/store/OnapCommandProfileStore.java
index 4be5bcd8..09ecf05a 100644
--- a/framework/src/main/java/org/onap/cli/fw/store/OnapCommandProfileStore.java
+++ b/framework/src/main/java/org/onap/cli/fw/store/OnapCommandProfileStore.java
@@ -184,8 +184,8 @@ public class OnapCommandProfileStore {
ObjectMapper mapper = new ObjectMapper();
OnapCommandParamEntity[] list = mapper.readValue(file, OnapCommandParamEntity[].class);
params.addAll(Arrays.asList(list));
- } else {
- throw new OnapCommandProfileNotFound(profileName);
+// } else {
+// throw new OnapCommandProfileNotFound(profileName);
}
} catch (IOException e) {
throw new OnapCommandProfileLoadFailed(e);
diff --git a/main/src/main/java/org/onap/cli/main/OnapCli.java b/main/src/main/java/org/onap/cli/main/OnapCli.java
index 0392daec..582be3c8 100644
--- a/main/src/main/java/org/onap/cli/main/OnapCli.java
+++ b/main/src/main/java/org/onap/cli/main/OnapCli.java
@@ -436,6 +436,7 @@ public class OnapCli {
continue;
}
+ this.setArgs(this.args.toArray(new String [] {}));
handleCommand();
}
}