diff options
author | MichaelMorris <michael.morris@est.tech> | 2023-09-04 11:53:56 +0100 |
---|---|---|
committer | Vasyl Razinkov <vasyl.razinkov@est.tech> | 2023-09-05 20:09:24 +0000 |
commit | 6531ae8151c52407d61b380534026e2d67f62753 (patch) | |
tree | 76fd6f780860dabd937b4ad67b5194a9cf6aab33 /catalog-be/src | |
parent | ada86de33ed3b074ac4b2ab94035120c0bdf49c7 (diff) |
Support policy type upgrade
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-4614
Change-Id: I4d8e29bf96bcdd6c24be14d805bbeae374e06b98
Diffstat (limited to 'catalog-be/src')
-rw-r--r-- | catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/PolicyTypeImportManager.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/PolicyTypeImportManager.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/PolicyTypeImportManager.java index 8c5f9ce8d6..400110226e 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/PolicyTypeImportManager.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/PolicyTypeImportManager.java @@ -97,8 +97,7 @@ public class PolicyTypeImportManager { private Either<List<ImmutablePair<PolicyTypeDefinition, Boolean>>, ResponseFormat> upsertPolicyTypesByDao( List<PolicyTypeDefinition> policyTypesToCreate, String modelName) { return commonImportManager.createElementTypesWithVersionByDao(policyTypesToCreate, this::validatePolicyType, - policyType -> new ImmutablePair<>(ElementTypeEnum.POLICY_TYPE, UniqueIdBuilder.buildPolicyTypeUid(policyType.getModel(), - policyType.getType(), policyType.getVersion(), NodeTypeEnum.PolicyType.getName()).toLowerCase()), + policyType -> new ImmutablePair<>(ElementTypeEnum.POLICY_TYPE, policyType.getType()), policyTypeOperation::getLatestPolicyTypeByType, policyTypeOperation::addPolicyType, this::updatePolicyType, modelName); } |