commit | 96b0450cf572772983dfb0e56503ec03f929ea83 | [log] [tgz] |
---|---|---|
author | Sébastien Determe <sebastien.determe@intl.att.com> | Wed Apr 15 08:37:20 2020 +0000 |
committer | Gerrit Code Review <gerrit@onap.org> | Wed Apr 15 08:37:20 2020 +0000 |
tree | 055d16be2a08414aa63d174648bf15e9f5371865 | |
parent | c08fcb8fe1bbf6dc736c42f14756df242ca76d42 [diff] | |
parent | 8b4027e3e359bba21014dd138da2545d54d117db [diff] |
Merge "Fix bug in undeploy flow"
diff --git a/src/main/java/org/onap/clamp/loop/LoopService.java b/src/main/java/org/onap/clamp/loop/LoopService.java index af1f58b..6658c5a 100644 --- a/src/main/java/org/onap/clamp/loop/LoopService.java +++ b/src/main/java/org/onap/clamp/loop/LoopService.java
@@ -98,7 +98,7 @@ public void updateDcaeDeploymentFields(Loop loop, String deploymentId, String deploymentUrl) { loop.setDcaeDeploymentId(deploymentId); loop.setDcaeDeploymentStatusUrl(deploymentUrl); - loopsRepository.save(loop); + loopsRepository.saveAndFlush(loop); } public void updateLoopState(Loop loop, String newState) {
diff --git a/src/main/java/org/onap/clamp/policy/microservice/MicroServicePolicyService.java b/src/main/java/org/onap/clamp/policy/microservice/MicroServicePolicyService.java index 37533c1..060e79a 100644 --- a/src/main/java/org/onap/clamp/policy/microservice/MicroServicePolicyService.java +++ b/src/main/java/org/onap/clamp/policy/microservice/MicroServicePolicyService.java
@@ -91,7 +91,7 @@ String deploymentUrl) { microServicePolicy.setDcaeDeploymentId(deploymentId); microServicePolicy.setDcaeDeploymentStatusUrl(deploymentUrl); - microServiceRepository.save(microServicePolicy); + microServiceRepository.saveAndFlush(microServicePolicy); }