From 21e27049544ddf0a30a839c968e21b6f877b729c Mon Sep 17 00:00:00 2001 From: PatrikBuhr Date: Mon, 14 Nov 2022 09:00:38 +0100 Subject: Support for using Amazon S3 - Cloud Object Storage Documentation updates. A bugfix. Issue-ID: CCSDK-3810 Signed-off-by: PatrikBuhr Change-Id: I47969bb1da370e1b6c2cacb9563f4bf4ca49b989 --- .../ccsdk/oran/a1policymanagementservice/repository/Policies.java | 2 +- .../ccsdk/oran/a1policymanagementservice/tasks/RefreshConfigTask.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'a1-policy-management/src/main/java') diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/repository/Policies.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/repository/Policies.java index d808b57d..09f59ca4 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/repository/Policies.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/repository/Policies.java @@ -101,7 +101,7 @@ public class Policies { policiesRic.put(policy.getRic().id(), policy.getId(), policy); policiesService.put(policy.getOwnerServiceId(), policy.getId(), policy); policiesType.put(policy.getType().getId(), policy.getId(), policy); - if (this.appConfig.getVardataDirectory() != null && !policy.isTransient()) { + if (!policy.isTransient()) { store(policy); } } diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RefreshConfigTask.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RefreshConfigTask.java index 567bb8d2..408a0d5f 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RefreshConfigTask.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RefreshConfigTask.java @@ -200,9 +200,7 @@ public class RefreshConfigTask { void addRic(Ric ric) { this.rics.put(ric); - if (this.appConfig.getVardataDirectory() != null) { - this.policies.restoreFromDatabase(ric, this.policyTypes).subscribe(); - } + this.policies.restoreFromDatabase(ric, this.policyTypes).subscribe(); logger.debug("Added RIC: {}", ric.id()); } -- cgit 1.2.3-korg