libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vd...@apache.org
Subject [03/23] libcloud git commit: Fix conn issues
Date Tue, 04 Dec 2018 08:54:18 GMT
Fix conn issues


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

Branch: refs/heads/trunk
Commit: 8b19d31ab53595014c0791b85663478767ad0f82
Parents: 9c0da3d
Author: micafer <micafer1@upv.es>
Authored: Tue Oct 23 16:34:43 2018 +0200
Committer: Rick van de Loo <rickvandeloo@gmail.com>
Committed: Tue Dec 4 09:45:48 2018 +0100

----------------------------------------------------------------------
 libcloud/compute/drivers/openstack.py | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/8b19d31a/libcloud/compute/drivers/openstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/openstack.py b/libcloud/compute/drivers/openstack.py
index 868ae09..da17e6c 100644
--- a/libcloud/compute/drivers/openstack.py
+++ b/libcloud/compute/drivers/openstack.py
@@ -2931,8 +2931,8 @@ class OpenStack_2_NodeDriver(OpenStack_1_1_NodeDriver):
         """
         data = {'subnet': {'cidr': cidr, 'network_id': network.id,
                            'ip_version': ip_version, 'name': name}}
-        response = self.connection.request(self._subnets_url_prefix,
-                                           method='POST', data=data).object
+        response = self.network_connection.request(
+            self._subnets_url_prefix, method='POST', data=data).object
         return self._to_subnet(response['subnet'])
 
     def ex_delete_subnet(self, subnet):
@@ -2944,9 +2944,8 @@ class OpenStack_2_NodeDriver(OpenStack_1_1_NodeDriver):
 
         :rtype: ``bool``
         """
-        resp = self.connection.request('%s/%s' % (self._subnets_url_prefix,
-                                                  subnet.id),
-                                       method='DELETE')
+        resp = self.network_connection.request('%s/%s' % (
+            self._subnets_url_prefix, subnet.id), method='DELETE')
         return resp.status in (httplib.NO_CONTENT, httplib.ACCEPTED)
 
     def ex_list_ports(self):


Mime
View raw message