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:41 UTC
[3/7] libcloud git commit: More linting
More linting
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/b806d3b6
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/b806d3b6
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/b806d3b6
Branch: refs/heads/trunk
Commit: b806d3b63ffab65bbbc4a6784943e6b6b2d3b930
Parents: 238e54c
Author: Joseph Hall <pe...@gmail.com>
Authored: Wed Apr 12 07:47:11 2017 -0600
Committer: Joseph Hall <pe...@gmail.com>
Committed: Wed Apr 12 07:47:11 2017 -0600
----------------------------------------------------------------------
libcloud/compute/drivers/azure_arm.py | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/b806d3b6/libcloud/compute/drivers/azure_arm.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure_arm.py b/libcloud/compute/drivers/azure_arm.py
index 013cc81..6ebe65f 100644
--- a/libcloud/compute/drivers/azure_arm.py
+++ b/libcloud/compute/drivers/azure_arm.py
@@ -81,8 +81,9 @@ class AzureNetworkSecurityGroup(object):
self.extra = extra
def __repr__(self):
- return (('<AzureNetworkSecurityGroup: id=%s, name=%s, location=%s ...>')
- % (self.id, self.name, self.location))
+ return (
+ ('<AzureNetworkSecurityGroup: id=%s, name=%s, location=%s ...>')
+ % (self.id, self.name, self.location))
class AzureNetwork(object):
@@ -888,10 +889,10 @@ class AzureNodeDriver(NodeDriver):
data = {
"location": location.id,
}
- r = self.connection.request(target,
- params={"api-version": "2016-09-01"},
- data=data,
- method='PUT')
+ self.connection.request(target,
+ params={"api-version": "2016-09-01"},
+ data=data,
+ method='PUT')
def ex_delete_network_security_group(self, name, resource_group,
location=None):
@@ -921,10 +922,10 @@ class AzureNodeDriver(NodeDriver):
data = {
"location": location.id,
}
- r = self.connection.request(target,
- params={"api-version": "2016-09-01"},
- data=data,
- method='DELETE')
+ self.connection.request(target,
+ params={"api-version": "2016-09-01"},
+ data=data,
+ method='DELETE')
def ex_list_networks(self):
"""