Changed an instance-reference to a static reference. 67/128267/1
authorsharath reddy <bs.reddy@huawei.com>
Mon, 4 Apr 2022 12:03:38 +0000 (17:33 +0530)
committersharath reddy <bs.reddy@huawei.com>
Mon, 4 Apr 2022 12:04:01 +0000 (17:34 +0530)
Issue-ID: CLI-439

report: tested weather-report, execution-list

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

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

index 06474ec..e1c1735 100644 (file)
@@ -56,7 +56,7 @@ public class OnapProfileUnsetCommand extends OnapCommand {
 
          Map<String, OnapCommandParamEntity> map = new HashMap<>();
 
-         for (OnapCommandParamEntity paramsExisting : cache.getInstance().loadParamFromCache(profile)) {
+         for (OnapCommandParamEntity paramsExisting : OnapCommandProfileStore.getInstance().loadParamFromCache(profile)) {
              map.put(paramsExisting.getProduct() + ":" + paramsExisting.getName(), paramsExisting);
          }