You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ts...@apache.org on 2012/12/10 07:16:59 UTC

[1/3] git commit: marvin: assertion check when fetching featured templates

Updated Branches:
  refs/heads/master 400d29be8 -> 7d4e65740


marvin: assertion check when fetching featured templates


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

Branch: refs/heads/master
Commit: 7d4e65740b574a7ffd0c3cbaba9d930f2e930951
Parents: 3ba8dc4
Author: Prasanna Santhanam <ts...@apache.org>
Authored: Sun Dec 9 22:14:02 2012 -0800
Committer: Prasanna Santhanam <ts...@apache.org>
Committed: Sun Dec 9 22:15:38 2012 -0800

----------------------------------------------------------------------
 tools/marvin/marvin/integration/lib/common.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/7d4e6574/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 de68178..05c6a1a 100644
--- a/tools/marvin/marvin/integration/lib/common.py
+++ b/tools/marvin/marvin/integration/lib/common.py
@@ -126,6 +126,7 @@ def get_template(apiclient, zoneid, ostype, services=None):
 
     list_templates = apiclient.listTemplates(cmd)
 
+    assert len(list_templates) > 0
     for template in list_templates:
         if template.ostypeid == ostypeid:
             return template