cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tall...@apache.org
Subject git commit: updated refs/heads/4.3 to 14ecb4f
Date Tue, 07 Jan 2014 12:10:57 GMT
Updated Branches:
  refs/heads/4.3 6220e48a9 -> 14ecb4f84


CLOUDSTACK-5113: Fix get_template method to return 'BUILTIN' template
by default


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/14ecb4f8
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/14ecb4f8
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/14ecb4f8

Branch: refs/heads/4.3
Commit: 14ecb4f842e4ca1a030333f8688dfceaa1f47797
Parents: 6220e48
Author: SrikanteswaraRao Talluri <talluri@apache.org>
Authored: Tue Jan 7 17:39:19 2014 +0530
Committer: SrikanteswaraRao Talluri <talluri@apache.org>
Committed: Tue Jan 7 17:39:19 2014 +0530

----------------------------------------------------------------------
 tools/marvin/marvin/integration/lib/common.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/14ecb4f8/tools/marvin/marvin/integration/lib/common.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/integration/lib/common.py b/tools/marvin/marvin/integration/lib/common.py
index c524675..504cd4c 100644
--- a/tools/marvin/marvin/integration/lib/common.py
+++ b/tools/marvin/marvin/integration/lib/common.py
@@ -209,7 +209,9 @@ def get_pod(apiclient, zoneid, services=None):
         raise Exception("Exception: Failed to find specified pod.")
 
 
-def get_template(apiclient, zoneid, ostype, services=None):
+def get_template(apiclient, zoneid, ostype, services=None,
+                 templatefilter='featured',
+                 templatetype='BUILTIN'):
     "Returns a template"
 
     cmd = listOsTypes.listOsTypesCmd()
@@ -223,7 +225,7 @@ def get_template(apiclient, zoneid, ostype, services=None):
             "Failed to find OS type with description: %s" % ostype)
 
     cmd = listTemplates.listTemplatesCmd()
-    cmd.templatefilter = 'featured'
+    cmd.templatefilter = templatefilter
     cmd.zoneid = zoneid
 
     if services:
@@ -237,7 +239,7 @@ def get_template(apiclient, zoneid, ostype, services=None):
         for template in list_templates:
             if template.ostypeid == ostypeid:
                 return template
-            elif template.isready:
+            elif template.isready and template.templatetype == templatetype:
                 return template
 
     raise Exception("Exception: Failed to find template with OSTypeID: %s" %


Mime
View raw message