Update if condition for product generation

Change-Id: I5c95cb3adc66927502ac9cef61acf906ae03c22f
diff --git a/src/com/mirantis/mk/Python.groovy b/src/com/mirantis/mk/Python.groovy
index c3b2c97..f135cc0 100644
--- a/src/com/mirantis/mk/Python.groovy
+++ b/src/com/mirantis/mk/Python.groovy
@@ -302,8 +302,9 @@
                 productDir = "stacklight2"
                 templateDir = "${templateEnvDir}/cluster_product/${productDir}"
             }
-            if (product == "infra" || (templateContext.default_context["${product}_enabled"]
-                && templateContext.default_context["${product}_enabled"].toBoolean())) {
+            // generate infra unless its explicitly disabled
+            if ((product == "infra" && templateContext.default_context.get("infra_enabled", "True").toBoolean())
+                 || (templateContext.default_context.get(product + "_enabled", "False").toBoolean())) {
 
                 common.infoMsg("Generating product " + product + " from " + templateDir + " to " + templateOutputDir)