Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D2B7B200BE4 for ; Wed, 16 Nov 2016 03:18:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D16D4160B03; Wed, 16 Nov 2016 02:18:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CA1ED160B1B for ; Wed, 16 Nov 2016 03:18:04 +0100 (CET) Received: (qmail 2555 invoked by uid 500); 16 Nov 2016 02:18:04 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 2444 invoked by uid 500); 16 Nov 2016 02:18:04 -0000 Delivered-To: apmail-libcloud-commits@libcloud.apache.org Received: (qmail 2401 invoked by uid 99); 16 Nov 2016 02:18:04 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2016 02:18:04 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C1D52DFE5C; Wed, 16 Nov 2016 02:18:03 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: anthonyshaw@apache.org To: commits@libcloud.apache.org Date: Wed, 16 Nov 2016 02:18:08 -0000 Message-Id: In-Reply-To: <0b9bacf474cd4d9184ea591d20d964b4@git.apache.org> References: <0b9bacf474cd4d9184ea591d20d964b4@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [6/7] libcloud git commit: Modified forward push archived-at: Wed, 16 Nov 2016 02:18:06 -0000 Modified forward push Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/bbba0ee7 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/bbba0ee7 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/bbba0ee7 Branch: refs/heads/trunk Commit: bbba0ee7e8e1324c074d07ebf725c4f96b018b09 Parents: 60bae83 Author: hequn Authored: Tue Nov 15 10:56:22 2016 +0800 Committer: hequn Committed: Tue Nov 15 10:56:22 2016 +0800 ---------------------------------------------------------------------- libcloud/compute/drivers/ecs.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/bbba0ee7/libcloud/compute/drivers/ecs.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/ecs.py b/libcloud/compute/drivers/ecs.py index 9b85ee9..03105ca 100644 --- a/libcloud/compute/drivers/ecs.py +++ b/libcloud/compute/drivers/ecs.py @@ -1383,10 +1383,9 @@ class ECSDriver(NodeDriver): raise AttributeError('ex_internet_max_bandwidth_out is ' 'mandatory for PayByTraffic internet' ' charge type.') - - if ex_internet_max_bandwidth_out: - params['InternetMaxBandwidthOut'] = \ - ex_internet_max_bandwidth_out + elif ex_internet_max_bandwidth_out: + params['InternetMaxBandwidthOut'] = \ + ex_internet_max_bandwidth_out if ex_internet_max_bandwidth_in: params['InternetMaxBandwidthIn'] = \