From fdc81a361037ee764f3e999a7cb03f602083641c Mon Sep 17 00:00:00 2001 From: guochong Date: Tue, 22 May 2018 19:28:09 +0800 Subject: fix endless loop Issue-ID: SO-634 Change-Id: Id39f2487d111099abf09330f3f2f089605cbe945 Signed-off-by: guochong --- .../bpmn/infrastructure/scripts/DoScaleVFCNetworkServiceInstance.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bpmn/MSOInfrastructureBPMN/src/main/groovy/org') diff --git a/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoScaleVFCNetworkServiceInstance.groovy b/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoScaleVFCNetworkServiceInstance.groovy index 9e3f78bbda..0e4aea00ae 100644 --- a/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoScaleVFCNetworkServiceInstance.groovy +++ b/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoScaleVFCNetworkServiceInstance.groovy @@ -123,7 +123,7 @@ public class DoScaleVFCNetworkServiceInstance extends AbstractServiceTaskProcess String isScaleFinished = "" // query the requested network service scale status, if finished, then start the next one, otherwise, wait - while (isScaleFinished != "finished"){ + while (isScaleFinished != "finished" && isScaleFinished != "error"){ timeDelay() queryNSProgress(execution) isScaleFinished = execution.getVariable("operationStatus") -- cgit 1.2.3-korg