decide on legacy_env according to STACK_TEMPLATE

Most of virtual_* stacks are using legacy heat env so we should pass
this parameter to createHeatStack function.

However, virtual_mcp11_aio was updated to new env.

Change-Id: Ic65ca9f1474079c0c98c9fe66e52b11c67121ea9
diff --git a/cloud-deploy-pipeline.groovy b/cloud-deploy-pipeline.groovy
index 928a832..50a9e54 100644
--- a/cloud-deploy-pipeline.groovy
+++ b/cloud-deploy-pipeline.groovy
@@ -141,7 +141,12 @@
                             common.infoMsg("Property STACK_RECLASS_BRANCH or STACK_RECLASS_ADDRESS not found! Using default values from template.")
                         }
 
-                        openstack.createHeatStack(openstackCloud, STACK_NAME, STACK_TEMPLATE, envParams, HEAT_STACK_ENVIRONMENT, venv, false)
+                        def legacy_env = false;
+                        if (STACK_TEMPLATE.startsWith('virtual_') && !STACK_TEMPLATE.contains('aio')) {
+                            legacy_env = true;
+                        }
+
+                        openstack.createHeatStack(openstackCloud, STACK_NAME, STACK_TEMPLATE, envParams, HEAT_STACK_ENVIRONMENT, venv, legacy_env)
                     }
                 }