Repository: libcloud Updated Branches: refs/heads/trunk f5f246eee -> fe34a54e0
Fix the bug that created the node at ecs driver 1, From the official document can know parameter param['IoOptimized'] type is string and his value is ``none`` or ``optimized`` Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/837f3c83 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/837f3c83 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/837f3c83 Branch: refs/heads/trunk Commit: 837f3c83b0360564a640c3b772c6f17b6fd1d858 Parents: ae98ebc Author: hequn <[email protected]> Authored: Thu Nov 10 15:06:37 2016 +0800 Committer: hequn <[email protected]> Committed: Thu Nov 10 15:06:37 2016 +0800 ---------------------------------------------------------------------- libcloud/compute/drivers/ecs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/837f3c83/libcloud/compute/drivers/ecs.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/ecs.py b/libcloud/compute/drivers/ecs.py index d55ed53..1dc6cb5 100644 --- a/libcloud/compute/drivers/ecs.py +++ b/libcloud/compute/drivers/ecs.py @@ -675,9 +675,9 @@ class ECSDriver(NodeDriver): if ex_io_optimized is not None: optimized = ex_io_optimized - if not isinstance(optimized, bool): - optimized = str(optimized).lower() == 'true' - params['IoOptimized'] = 'true' if optimized else 'false' + if isinstance(optimized, bool): + optimized = 'optimized' if optimized else 'none' + params['IoOptimized'] = optimized if ex_system_disk: system_disk = self._get_system_disk(ex_system_disk)
