From 1ac6dc7bc93865a92c1c5d19a0a1e8a82c7d3380 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Fri, 9 Mar 2018 03:18:05 +0530 Subject: Fix Profile creation failed Issue-ID: CLI-99 Change-Id: I66a7a2bde49ae5747d0deb2f52d3b7c25319919e Signed-off-by: Kanagaraj Manickam k00365106 --- main/src/main/java/org/onap/cli/main/OnapCli.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 30db0703..938497dd 100644 --- a/main/src/main/java/org/onap/cli/main/OnapCli.java +++ b/main/src/main/java/org/onap/cli/main/OnapCli.java @@ -148,7 +148,7 @@ public class OnapCli { new ArrayList()); //Make space of interactive mode/command mode this.args.remove(0); //--profile or -c - this.args.remove(1); //profile name + this.args.remove(0); //profile name } } catch (Exception e) { this.print(e); @@ -251,7 +251,7 @@ public class OnapCli { } else if (!args.isEmpty() && this.args.get(0).equals(OnapCliConstants.PARAM_INTERACTIVE_PROFILE)) { if (args.size() == 1) { this.print("Please use it in the form of 'profile '\n"); - this.print("Profiles: "); + this.print("Available profiles: "); this.print(OnapCommandRegistrar.getRegistrar().getUserProfiles().toString()); } else { this.args = Arrays.asList(new String [] { -- cgit 1.2.3-korg