Changed an instance-reference to a static reference. 66/128266/2
authorsharath reddy <bs.reddy@huawei.com>
Mon, 4 Apr 2022 11:55:57 +0000 (17:25 +0530)
committerKanagaraj Manickam <kanagaraj.manickam@huawei.com>
Thu, 7 Apr 2022 12:31:16 +0000 (12:31 +0000)
Issue-ID: CLI-439

report: tested weather-report

Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Change-Id: I2fb7e5665fad6c807ec191e535ac6f9b6854fee2

framework/src/main/java/org/onap/cli/fw/cmd/profile/OnapProfileSetCommand.java

index fa83ace..2cb3cea 100644 (file)
@@ -57,7 +57,7 @@ public class OnapProfileSetCommand extends OnapCommand {
          Map<String, OnapCommandParamEntity> map = new HashMap<>();
 
          try {
-             for (OnapCommandParamEntity paramsExisting : cache.getInstance().loadParamFromCache(profile)) {
+             for (OnapCommandParamEntity paramsExisting : OnapCommandProfileStore.getInstance().loadParamFromCache(profile)) {
                  map.put(paramsExisting.getProduct() + ":" + paramsExisting.getName(), paramsExisting);
              }
          } catch (OnapCommandProfileNotFound e) {