Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A84EE10075 for ; Thu, 1 Aug 2013 06:26:55 +0000 (UTC) Received: (qmail 64940 invoked by uid 500); 1 Aug 2013 06:26:54 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 64918 invoked by uid 500); 1 Aug 2013 06:26:54 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 64902 invoked by uid 99); 1 Aug 2013 06:26:53 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Aug 2013 06:26:53 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 611168B5689; Thu, 1 Aug 2013 06:26:53 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jburwell@apache.org To: commits@cloudstack.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: git commit: updated refs/heads/4.2 to 1cc98ee Date: Thu, 1 Aug 2013 06:26:53 +0000 (UTC) Updated Branches: refs/heads/4.2 5e3b75163 -> 1cc98ee7a - CLODSTACK-3229: Adds missing is_blank function to s3xen Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/1cc98ee7 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/1cc98ee7 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/1cc98ee7 Branch: refs/heads/4.2 Commit: 1cc98ee7aeab7b9dff46da9c9a592c2e56bb0f52 Parents: 5e3b751 Author: John Burwell Authored: Thu Aug 1 02:26:00 2013 -0400 Committer: John Burwell Committed: Thu Aug 1 02:26:46 2013 -0400 ---------------------------------------------------------------------- scripts/vm/hypervisor/xenserver/s3xen | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1cc98ee7/scripts/vm/hypervisor/xenserver/s3xen ---------------------------------------------------------------------- diff --git a/scripts/vm/hypervisor/xenserver/s3xen b/scripts/vm/hypervisor/xenserver/s3xen index 8c1d3d8..44a30ef 100644 --- a/scripts/vm/hypervisor/xenserver/s3xen +++ b/scripts/vm/hypervisor/xenserver/s3xen @@ -78,6 +78,11 @@ def optional_str_value(value, default): return default +def is_blank(value): + + return not is_not_blank(value) + + def is_not_blank(value): if to_none(value) is None or not isinstance(value, basestring):