libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vd...@apache.org
Subject [12/18] libcloud git commit: Fix lint errors
Date Wed, 19 Sep 2018 08:09:48 GMT
Fix lint errors


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

Branch: refs/heads/trunk
Commit: 9980d03a4edafd92606d0ec762ee786a8c7f590d
Parents: c7464b5
Author: micafer <micafer1@upv.es>
Authored: Fri May 25 09:23:21 2018 +0200
Committer: micafer <micafer1@upv.es>
Committed: Fri May 25 09:23:21 2018 +0200

----------------------------------------------------------------------
 libcloud/compute/drivers/openstack.py | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/9980d03a/libcloud/compute/drivers/openstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/openstack.py b/libcloud/compute/drivers/openstack.py
index dc164fb..a4300ae 100644
--- a/libcloud/compute/drivers/openstack.py
+++ b/libcloud/compute/drivers/openstack.py
@@ -2554,7 +2554,7 @@ class OpenStack_2_NodeDriver(OpenStack_1_1_NodeDriver):
         # We run the init once to get the Glance V2 API connection
         # and put that on the object under self.image_connection.
         self._ex_force_base_url = str(kwargs.pop('ex_force_image_url',
-                                                None))
+                                                 None))
         kwargs['ex_force_base_url'] = self._ex_force_base_url
         self.connectionCls = self.image_connectionCls
         super(OpenStack_2_NodeDriver, self).__init__(*args, **kwargs)
@@ -2563,7 +2563,7 @@ class OpenStack_2_NodeDriver(OpenStack_1_1_NodeDriver):
         # We run the init once to get the Neutron V2 API connection
         # and put that on the object under self.image_connection.
         self._ex_force_base_url = str(kwargs.pop('ex_force_network_url',
-                                                    None))
+                                                 None))
         kwargs['ex_force_base_url'] = self._ex_force_base_url
         self.connectionCls = self.network_connectionCls
         super(OpenStack_2_NodeDriver, self).__init__(*args, **kwargs)
@@ -2736,7 +2736,6 @@ class OpenStack_2_NodeDriver(OpenStack_1_1_NodeDriver):
         )
         return self._to_image_member(response.object)
 
-
     def _to_networks(self, obj):
         networks = obj['networks']
         return [self._to_network(network) for network in networks]
@@ -2759,7 +2758,8 @@ class OpenStack_2_NodeDriver(OpenStack_1_1_NodeDriver):
 
         :rtype: ``list`` of :class:`OpenStackNetwork`
         """
-        response = self.network_connection.request(self._networks_url_prefix).object
+        response = self.network_connection.request(
+            self._networks_url_prefix).object
         return self._to_networks(response)
 
     def _to_subnets(self, obj):
@@ -2784,7 +2784,8 @@ class OpenStack_2_NodeDriver(OpenStack_1_1_NodeDriver):
 
         :rtype: ``list`` of :class:`OpenStack_2_SubNet`
         """
-        response = self.network_connection.request(self._subnets_url_prefix).object
+        response = self.network_connection.request(
+            self._subnets_url_prefix).object
         return self._to_subnets(response)
 
 
@@ -2908,4 +2909,4 @@ class OpenStack_2_SubNet(object):
     def __repr__(self):
         return '<OpenStack_2_SubNet id="%s" name="%s" cidr="%s">' % (self.id,
                                                                      self.name,
-                                                                     self.cidr)
\ No newline at end of file
+                                                                     self.cidr)


Mime
View raw message