You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2015/08/31 18:42:03 UTC
[3/5] libcloud git commit: Fixing up indentations.
Fixing up indentations.
Signed-off-by: Tomaz Muraus <to...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/4414dde0
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/4414dde0
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/4414dde0
Branch: refs/heads/trunk
Commit: 4414dde004cdcf5327f049e7115aea00a749c51f
Parents: 3bbc62a
Author: Anthony Shaw <an...@gmail.com>
Authored: Mon Aug 31 13:10:40 2015 +1000
Committer: Tomaz Muraus <to...@apache.org>
Committed: Mon Aug 31 18:16:39 2015 +0200
----------------------------------------------------------------------
libcloud/compute/drivers/dimensiondata.py | 7 ++++---
libcloud/test/compute/test_dimensiondata.py | 7 +++----
2 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/4414dde0/libcloud/compute/drivers/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/dimensiondata.py b/libcloud/compute/drivers/dimensiondata.py
index fad4476..9339f27 100644
--- a/libcloud/compute/drivers/dimensiondata.py
+++ b/libcloud/compute/drivers/dimensiondata.py
@@ -506,8 +506,9 @@ class DimensionDataNodeDriver(NodeDriver):
'description': findtext(element, 'description', TYPES_URN),
'sourceImageId': findtext(element, 'sourceImageId', TYPES_URN),
'networkId': findtext(element, 'networkId', TYPES_URN),
- 'networkDomainId': element.find(fixxpath('networkInfo', TYPES_URN))\
- .get('networkDomainId') \
+ 'networkDomainId':
+ element.find(fixxpath('networkInfo', TYPES_URN))
+ .get('networkDomainId')
if has_network_info else None,
'datacenterId': element.get('datacenterId'),
'deployedTime': findtext(element, 'createTime', TYPES_URN),
@@ -535,7 +536,7 @@ class DimensionDataNodeDriver(NodeDriver):
private_ip = element.find(
fixxpath('networkInfo/primaryNic', TYPES_URN)) \
- .get('privateIpv4') \
+ .get('privateIpv4') \
if has_network_info else \
element.find(fixxpath('nic', TYPES_URN)).get('privateIpv4')
http://git-wip-us.apache.org/repos/asf/libcloud/blob/4414dde0/libcloud/test/compute/test_dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_dimensiondata.py b/libcloud/test/compute/test_dimensiondata.py
index 59c31df..cd8a258 100644
--- a/libcloud/test/compute/test_dimensiondata.py
+++ b/libcloud/test/compute/test_dimensiondata.py
@@ -118,11 +118,10 @@ class DimensionDataTests(unittest.TestCase, TestCaseMixin):
def test_create_node_no_network(self):
rootPw = NodeAuthPassword('pass123')
image = self.driver.list_images()[0]
- network = self.driver.ex_list_networks()[0]
try:
- node = self.driver.create_node(name='test2', image=image, auth=rootPw,
- ex_description='test2 node', ex_network=None,
- ex_isStarted=False)
+ self.driver.create_node(name='test2', image=image, auth=rootPw,
+ ex_description='test2 node', ex_network=None,
+ ex_isStarted=False)
except ValueError:
pass