diff options
author | FrancescoFioraEst <francesco.fiora@est.tech> | 2023-05-31 16:38:22 +0100 |
---|---|---|
committer | Liam Fallon <liam.fallon@est.tech> | 2023-06-06 08:08:19 +0000 |
commit | 115a74108efca853e030750b508692145be70afe (patch) | |
tree | 0ecf77c05544504e2f0d252a98d4ce77a89441da /participant/participant-intermediary/src/main | |
parent | db2c8bd70e8fd6702d79c07275a54cdcdda2cfb5 (diff) |
Add Failure handling support in the ACM-R
Issue-ID: POLICY-4705
Change-Id: I919b7981cdbe69ac7ce703fceb2e980a6d9a056e
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
(cherry picked from commit ebb4d0cf867d752ae148880dd0109fc3cf6d6025)
Diffstat (limited to 'participant/participant-intermediary/src/main')
-rw-r--r-- | participant/participant-intermediary/src/main/java/org/onap/policy/clamp/acm/participant/intermediary/handler/AutomationCompositionHandler.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/participant/participant-intermediary/src/main/java/org/onap/policy/clamp/acm/participant/intermediary/handler/AutomationCompositionHandler.java b/participant/participant-intermediary/src/main/java/org/onap/policy/clamp/acm/participant/intermediary/handler/AutomationCompositionHandler.java index 9087054fe..514bc655f 100644 --- a/participant/participant-intermediary/src/main/java/org/onap/policy/clamp/acm/participant/intermediary/handler/AutomationCompositionHandler.java +++ b/participant/participant-intermediary/src/main/java/org/onap/policy/clamp/acm/participant/intermediary/handler/AutomationCompositionHandler.java @@ -209,8 +209,11 @@ public class AutomationCompositionHandler { private boolean checkConsistantOrderState(AutomationComposition automationComposition, DeployOrder deployOrder, LockOrder lockOrder) { + if (DeployOrder.UPDATE.equals(deployOrder)) { + return true; + } return acInstanceStateResolver.resolve(deployOrder, lockOrder, automationComposition.getDeployState(), - automationComposition.getLockState()) != null; + automationComposition.getLockState(), automationComposition.getStateChangeResult()) != null; } /** |