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/06/07 00:46:38 UTC
[17/28] libcloud git commit: fix linting errors
fix linting errors
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/291ffceb
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/291ffceb
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/291ffceb
Branch: refs/heads/trunk
Commit: 291ffceb877595ef00f1e9ad53fb10f2e48185db
Parents: 7bc8798
Author: anthony-shaw <an...@apache.org>
Authored: Mon Jun 6 22:34:44 2016 +1000
Committer: anthony-shaw <an...@apache.org>
Committed: Mon Jun 6 22:34:44 2016 +1000
----------------------------------------------------------------------
libcloud/compute/drivers/dimensiondata.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/291ffceb/libcloud/compute/drivers/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/dimensiondata.py b/libcloud/compute/drivers/dimensiondata.py
index 13a7a1c..f3c30de 100644
--- a/libcloud/compute/drivers/dimensiondata.py
+++ b/libcloud/compute/drivers/dimensiondata.py
@@ -2430,7 +2430,7 @@ class DimensionDataNodeDriver(NodeDriver):
port_list = element.find(fixxpath('portList', TYPES_URN))
address_list = element.find(fixxpath('ipAddressList', TYPES_URN))
if address_list is None:
- return DimensionDataFirewallAddress (
+ return DimensionDataFirewallAddress(
any_ip=ip.get('address') == 'ANY',
ip_address=ip.get('address'),
ip_prefix_size=ip.get('prefixSize'),
@@ -2443,11 +2443,11 @@ class DimensionDataNodeDriver(NodeDriver):
)
else:
return DimensionDataFirewallAddress(
- any_ip = False,
- ip_address= None,
- ip_prefix_size = None,
- port_begin = None,
- port_end = None,
+ any_ip=False,
+ ip_address=None,
+ ip_prefix_size=None,
+ port_begin=None,
+ port_end=None,
port_list_id=port_list.get('id', None)
if port_list is not None else None,
address_list_id=address_list.get('id')