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 <[email protected]> Authored: Tue Nov 15 10:56:22 2016 +0800 Committer: hequn <[email protected]> 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'] = \
