fix endless loop 75/48475/1
authorguochong <guochong@chinamobile.com>
Tue, 22 May 2018 11:28:09 +0000 (19:28 +0800)
committerguochong <guochong@chinamobile.com>
Tue, 22 May 2018 11:28:52 +0000 (19:28 +0800)
Issue-ID: SO-634

Change-Id: Id39f2487d111099abf09330f3f2f089605cbe945
Signed-off-by: guochong <guochong@chinamobile.com>
bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoScaleVFCNetworkServiceInstance.groovy

index 9e3f78b..0e4aea0 100644 (file)
@@ -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")