Return-Path: X-Original-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2608AE752 for ; Mon, 10 Dec 2012 06:17:02 +0000 (UTC) Received: (qmail 5778 invoked by uid 500); 10 Dec 2012 06:17:01 -0000 Delivered-To: apmail-incubator-cloudstack-commits-archive@incubator.apache.org Received: (qmail 5610 invoked by uid 500); 10 Dec 2012 06:17:00 -0000 Mailing-List: contact cloudstack-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-commits@incubator.apache.org Received: (qmail 5584 invoked by uid 99); 10 Dec 2012 06:16:59 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2012 06:16:59 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 4D75781A4BB; Mon, 10 Dec 2012 06:16:59 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tsp@apache.org To: cloudstack-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [1/3] git commit: marvin: assertion check when fetching featured templates Message-Id: <20121210061659.4D75781A4BB@tyr.zones.apache.org> Date: Mon, 10 Dec 2012 06:16:59 +0000 (UTC) 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 Authored: Sun Dec 9 22:14:02 2012 -0800 Committer: Prasanna Santhanam 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