summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancescoFioraEst <francesco.fiora@est.tech>2024-03-26 10:10:22 +0000
committerFrancesco Fiora <francesco.fiora@est.tech>2024-04-02 08:50:29 +0000
commit344d1f00bd96c63df96a2bbf8be8a8386ba4ef73 (patch)
tree0b9eed918b24dc45ee9656141ad49f5205513c6d
parent1cf51a2280fb2f9a0435b8a3f2c64492cb7e6659 (diff)
Fix properties issue during migrate in ACM-participant
Issue-ID: POLICY-4953 Change-Id: I83cb4879faff050d21f16ef285cdccd528231062 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
-rw-r--r--participant/participant-intermediary/src/main/java/org/onap/policy/clamp/acm/participant/intermediary/api/impl/AcElementListenerV1.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/participant/participant-intermediary/src/main/java/org/onap/policy/clamp/acm/participant/intermediary/api/impl/AcElementListenerV1.java b/participant/participant-intermediary/src/main/java/org/onap/policy/clamp/acm/participant/intermediary/api/impl/AcElementListenerV1.java
index f91a2a180..5d4e1fe7c 100644
--- a/participant/participant-intermediary/src/main/java/org/onap/policy/clamp/acm/participant/intermediary/api/impl/AcElementListenerV1.java
+++ b/participant/participant-intermediary/src/main/java/org/onap/policy/clamp/acm/participant/intermediary/api/impl/AcElementListenerV1.java
@@ -245,9 +245,9 @@ public abstract class AcElementListenerV1 implements AutomationCompositionElemen
public void migrate(CompositionElementDto compositionElement, CompositionElementDto compositionElementTarget,
InstanceElementDto instanceElement, InstanceElementDto instanceElementMigrate) throws PfModelException {
var element = new AcElementDeploy();
- element.setId(instanceElement.elementId());
- element.setDefinition(compositionElement.elementDefinitionId());
- element.setProperties(instanceElement.inProperties());
+ element.setId(instanceElementMigrate.elementId());
+ element.setDefinition(compositionElementTarget.elementDefinitionId());
+ element.setProperties(instanceElementMigrate.inProperties());
migrate(instanceElementMigrate.instanceId(), element, compositionElementTarget.compositionId(),
element.getProperties());
}