diff options
author | 2020-04-15 09:35:57 +0200 | |
---|---|---|
committer | 2020-04-15 09:44:26 +0200 | |
commit | 8b4027e3e359bba21014dd138da2545d54d117db (patch) | |
tree | e8daa154c0a692bebc4e308ba97745a2a9d44ce6 /src/main/java/org/onap/clamp/policy/microservice/MicroServicePolicyService.java | |
parent | 10266c923850e842e14c602d772ce2ebbc77fe89 (diff) |
Fix bug in undeploy flow
Save and flush the deploymentId and statusUrl in the undeploy flow, so
that refresh dcae status will use the correct statusUrl.
Issue-ID: CLAMP-807
Change-Id: If83c222f772face6f33f00bd8cf5d5c8e55ded55
Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'src/main/java/org/onap/clamp/policy/microservice/MicroServicePolicyService.java')
-rw-r--r-- | src/main/java/org/onap/clamp/policy/microservice/MicroServicePolicyService.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 37533c1f..060e79a6 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 @@ public class MicroServicePolicyService implements PolicyService<MicroServicePoli String deploymentUrl) { microServicePolicy.setDcaeDeploymentId(deploymentId); microServicePolicy.setDcaeDeploymentStatusUrl(deploymentUrl); - microServiceRepository.save(microServicePolicy); + microServiceRepository.saveAndFlush(microServicePolicy); } |