check template result
diff --git a/tools/marvin/marvin/deployDataCenter.py b/tools/marvin/marvin/deployDataCenter.py
index 93cd6d0..f1fcc81 100644
--- a/tools/marvin/marvin/deployDataCenter.py
+++ b/tools/marvin/marvin/deployDataCenter.py
@@ -850,7 +850,7 @@
         retries = 5 * 60 / 10
         while retries > 0:
             template = get_template(apiClient, zone.id)
-            if template:
+            if template is not None and template != "FAILED":
                 return SUCCESS
             self.__tcRunLogger.debug("waiting for user vm template is up")
             retries -= 1