libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [6/7] libcloud git commit: Modified forward push
Date Wed, 16 Nov 2016 02:18:08 GMT
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 <hequn@hihuron.com>
Authored: Tue Nov 15 10:56:22 2016 +0800
Committer: hequn <hequn@hihuron.com>
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'] = \


Mime
View raw message