You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2016/12/27 08:26:48 UTC

[06/11] libcloud git commit: Validate create_node method ex_is_started parameter. Set to False by default

Validate create_node method ex_is_started parameter. Set to False by default


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/6a4ab59f
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/6a4ab59f
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/6a4ab59f

Branch: refs/heads/trunk
Commit: 6a4ab59f7eee3768ad3c9fed94b071016e5a2625
Parents: f011a2a
Author: Samuel Chong <sa...@gmail.com>
Authored: Fri Dec 16 11:01:29 2016 +1100
Committer: Anthony Shaw <an...@apache.org>
Committed: Tue Dec 27 19:22:04 2016 +1100

----------------------------------------------------------------------
 libcloud/compute/drivers/dimensiondata.py | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/6a4ab59f/libcloud/compute/drivers/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/dimensiondata.py b/libcloud/compute/drivers/dimensiondata.py
index bf532f9..499f569 100644
--- a/libcloud/compute/drivers/dimensiondata.py
+++ b/libcloud/compute/drivers/dimensiondata.py
@@ -481,6 +481,10 @@ class DimensionDataNodeDriver(NodeDriver):
                              'ex_network_domain '
                              'for MCP2 or ex_network for legacy MCP1')
 
+        # Set ex_is_started to False by default if none bool data type provided
+        if not isinstance(ex_is_started, bool):
+            ex_is_started = True
+
         # Handle MCP1 legacy
         if 'ex_network' in kwargs:
             new_node = self._create_node_mcp1(