summaryrefslogtreecommitdiffstats
path: root/framework/src/main/java
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-03-09 04:58:46 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-03-09 04:58:46 +0530
commitdef24471774de6e9dfab6f8176f59be1c2c619b4 (patch)
treee4154fedf816acc707d833beb857438a8d9f3473 /framework/src/main/java
parent1ac6dc7bc93865a92c1c5d19a0a1e8a82c7d3380 (diff)
Rename default profile to default
Issue-ID: CLI-99 Change-Id: I668fd3639c5f0fda1fc96d21a7da6a336a8b7100 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/main/java')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConstants.java2
-rw-r--r--framework/src/main/java/org/onap/cli/fw/input/cache/OnapCommandParameterCache.java1
2 files changed, 2 insertions, 1 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConstants.java b/framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConstants.java
index 39204237..23d42f87 100644
--- a/framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConstants.java
+++ b/framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConstants.java
@@ -117,7 +117,7 @@ public class OnapCommandConstants {
public static final String DATA_PATH_PROFILE_JSON = "-profile.json";
public static final String DATA_PATH_PROFILE_JSON_PATTERN = DATA_DIRECTORY + "/**/*" + DATA_PATH_PROFILE_JSON;
public static final String DISCOVER_ALWAYS = "discover_always";
- public static final String PARAM_CACHE_FILE_NAME = "global-profile";
+ public static final String PARAM_CACHE_FILE_NAME = "default";
//normal
public static final String BASIC_SCHEMA_PROFILE = "basic";
diff --git a/framework/src/main/java/org/onap/cli/fw/input/cache/OnapCommandParameterCache.java b/framework/src/main/java/org/onap/cli/fw/input/cache/OnapCommandParameterCache.java
index 6669d965..19533ef7 100644
--- a/framework/src/main/java/org/onap/cli/fw/input/cache/OnapCommandParameterCache.java
+++ b/framework/src/main/java/org/onap/cli/fw/input/cache/OnapCommandParameterCache.java
@@ -140,6 +140,7 @@ public class OnapCommandParameterCache {
public void setProfile(String profileName) {
this.profileName = profileName;
+ this.paramCache.clear();
this.load();
}