diff options
author | PatrikBuhr <patrik.buhr@est.tech> | 2022-11-14 09:00:38 +0100 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2022-11-15 20:57:28 +0000 |
commit | 21e27049544ddf0a30a839c968e21b6f877b729c (patch) | |
tree | 3afde8491a21f4c780f5a8807a0cca639d05ca6c /a1-policy-management | |
parent | ed0b18250bab22f6cdfbb570f2495301cf669d77 (diff) |
Support for using Amazon S3 - Cloud Object Storage
Documentation updates.
A bugfix.
Issue-ID: CCSDK-3810
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
Change-Id: I47969bb1da370e1b6c2cacb9563f4bf4ca49b989
Diffstat (limited to 'a1-policy-management')
2 files changed, 2 insertions, 4 deletions
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()); } |