Merge "fix endless loop"
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 9e3f78b..0e4aea0 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 @@
             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")