aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdheli Tavares <adheli.tavares@est.tech>2024-04-03 08:51:53 +0000
committerGerrit Code Review <gerrit@onap.org>2024-04-03 08:51:53 +0000
commit9e19b46da3955940e980d2504ffee99aa9c023d1 (patch)
tree6e333afa57690476b9b51c2307c739137b7e350d
parentc6a9ea4949ceda1c8297957cf6156e75ce1ddeac (diff)
parent344d1f00bd96c63df96a2bbf8be8a8386ba4ef73 (diff)
Merge "Fix properties issue during migrate in ACM-participant"
-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());
}