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 2017/04/12 23:27:40 UTC
[2/7] libcloud git commit: Lint
Lint
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/238e54cc
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/238e54cc
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/238e54cc
Branch: refs/heads/trunk
Commit: 238e54ccf1a85fe9c60df0ab188699dfda84a28b
Parents: e2bd4b9
Author: Joseph Hall <pe...@gmail.com>
Authored: Wed Apr 12 07:39:50 2017 -0600
Committer: Joseph Hall <pe...@gmail.com>
Committed: Wed Apr 12 07:39:50 2017 -0600
----------------------------------------------------------------------
libcloud/compute/drivers/azure_arm.py | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/238e54cc/libcloud/compute/drivers/azure_arm.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure_arm.py b/libcloud/compute/drivers/azure_arm.py
index 2327384..013cc81 100644
--- a/libcloud/compute/drivers/azure_arm.py
+++ b/libcloud/compute/drivers/azure_arm.py
@@ -854,8 +854,11 @@ class AzureNodeDriver(NodeDriver):
% (self.subscription_id, resource_group)
r = self.connection.request(action,
params={"api-version": "2015-06-15"})
- return [AzureNetworkSecurityGroup(net["id"], net["name"],
- net["location"], net["properties"]) for net in r.object["value"]]
+ return [AzureNetworkSecurityGroup(net["id"],
+ net["name"],
+ net["location"],
+ net["properties"]) \
+ for net in r.object["value"]]
def ex_create_network_security_group(self, name, resource_group,
location=None):
@@ -888,8 +891,7 @@ class AzureNodeDriver(NodeDriver):
r = self.connection.request(target,
params={"api-version": "2016-09-01"},
data=data,
- method='PUT'
- )
+ method='PUT')
def ex_delete_network_security_group(self, name, resource_group,
location=None):
@@ -922,8 +924,7 @@ class AzureNodeDriver(NodeDriver):
r = self.connection.request(target,
params={"api-version": "2016-09-01"},
data=data,
- method='DELETE'
- )
+ method='DELETE')
def ex_list_networks(self):
"""
@@ -1059,8 +1060,7 @@ class AzureNodeDriver(NodeDriver):
r = self.connection.request(target,
params={"api-version": "2015-06-15"},
data=data,
- method='PUT'
- )
+ method='PUT')
return self._to_ip_address(r.object)
def ex_create_network_interface(self, name, subnet, resource_group,
@@ -1124,8 +1124,7 @@ class AzureNodeDriver(NodeDriver):
r = self.connection.request(target,
params={"api-version": "2015-06-15"},
data=data,
- method='PUT'
- )
+ method='PUT')
return AzureNic(r.object["id"], r.object["name"], r.object["location"],
r.object["properties"])