Fixed the creation of nodes bug. 1, Fixed the creation of nodes can not specify bandwidth bug.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/60bae834 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/60bae834 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/60bae834 Branch: refs/heads/trunk Commit: 60bae834f2ba5cbce6a6eb2c834b8ac56db96c89 Parents: 403825d Author: hequn <[email protected]> Authored: Tue Nov 15 10:29:03 2016 +0800 Committer: hequn <[email protected]> Committed: Tue Nov 15 10:29:03 2016 +0800 ---------------------------------------------------------------------- libcloud/compute/drivers/ecs.py | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/60bae834/libcloud/compute/drivers/ecs.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/ecs.py b/libcloud/compute/drivers/ecs.py index bb34453..9b85ee9 100644 --- a/libcloud/compute/drivers/ecs.py +++ b/libcloud/compute/drivers/ecs.py @@ -1384,6 +1384,10 @@ class ECSDriver(NodeDriver): 'mandatory for PayByTraffic internet' ' charge type.') + if ex_internet_max_bandwidth_out: + params['InternetMaxBandwidthOut'] = \ + ex_internet_max_bandwidth_out + if ex_internet_max_bandwidth_in: params['InternetMaxBandwidthIn'] = \ ex_internet_max_bandwidth_in
