libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [1/5] libcloud git commit: Lint
Date Wed, 12 Apr 2017 23:17:30 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk 994456af4 -> 4938430e9


Lint


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

Branch: refs/heads/trunk
Commit: 18a0ee8ee809e6f22c59c943924ace9cce6d24a9
Parents: 6580f71
Author: Joseph Hall <perlhoser@gmail.com>
Authored: Wed Apr 12 07:36:52 2017 -0600
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Thu Apr 13 09:16:02 2017 +1000

----------------------------------------------------------------------
 libcloud/compute/drivers/azure_arm.py | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/18a0ee8e/libcloud/compute/drivers/azure_arm.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure_arm.py b/libcloud/compute/drivers/azure_arm.py
index 28ed59e..437526a 100644
--- a/libcloud/compute/drivers/azure_arm.py
+++ b/libcloud/compute/drivers/azure_arm.py
@@ -848,8 +848,9 @@ class AzureNodeDriver(NodeDriver):
         action = "/subscriptions/%s/resourceGroups/" % (self.subscription_id)
         r = self.connection.request(action,
                                     params={"api-version": "2016-09-01"})
-        return [AzureResourceGroup(net["id"], net["name"], net["location"],
-                             net["properties"]) for net in r.object["value"]]
+        return [AzureResourceGroup(grp["id"], grp["name"], grp["location"],
+                                   grp["properties"]) for grp \
+                                   in r.object["value"]]
 
     def ex_list_networks(self):
         """
@@ -985,8 +986,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,
@@ -1050,8 +1050,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"])
 


Mime
View raw message