From 1b4f20dfda1c5dad80640571e13de53772f2cce1 Mon Sep 17 00:00:00 2001 From: sebdet Date: Tue, 17 Mar 2020 07:47:03 -0700 Subject: Fix the policy synchro Fix the periodic policy synchro issue due to wrong format expected. Issue-ID: CLAMP-784 Signed-off-by: sebdet Change-Id: Iaa815e92bb5c7d93f9db9c75f98e144b8d0f6b44 --- src/main/java/org/onap/clamp/clds/client/PolicyEngineServices.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org') diff --git a/src/main/java/org/onap/clamp/clds/client/PolicyEngineServices.java b/src/main/java/org/onap/clamp/clds/client/PolicyEngineServices.java index 23586712a..5e6d9d98d 100644 --- a/src/main/java/org/onap/clamp/clds/client/PolicyEngineServices.java +++ b/src/main/java/org/onap/clamp/clds/client/PolicyEngineServices.java @@ -118,7 +118,7 @@ public class PolicyEngineServices { LinkedHashMap policyTypesMap = (LinkedHashMap) loadedYaml .get("policy_types"); - policyTypesMap.entrySet().parallelStream().forEach(entryPolicyType -> { + policyTypesMap.entrySet().stream().forEach(entryPolicyType -> { policyModelsService.createPolicyInDbIfNeeded( createPolicyModelFromPolicyEngine(entryPolicyType.getKey(), ((String) ((LinkedHashMap) entryPolicyType.getValue()).get("version")))); -- cgit 1.2.3-korg