Add cinder support LIBCLOUD-874

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

Branch: refs/heads/trunk
Commit: c8d253f7c8e566aa29589b78236264946a3cade3
Parents: 2d9e862
Author: micafer <[email protected]>
Authored: Mon Sep 24 16:20:20 2018 +0200
Committer: Rick van de Loo <[email protected]>
Committed: Tue Dec 4 09:45:48 2018 +0100

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/c8d253f7/libcloud/compute/drivers/openstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/openstack.py 
b/libcloud/compute/drivers/openstack.py
index 9bd80cc..4fcdda6 100644
--- a/libcloud/compute/drivers/openstack.py
+++ b/libcloud/compute/drivers/openstack.py
@@ -3067,13 +3067,13 @@ class OpenStack_2_NodeDriver(OpenStack_1_1_NodeDriver):
             volume['snapshot_id'] = snapshot.id
 
         resp = self.volumev2_connection.request('/volumes',
-                                       method='POST',
-                                       data={'volume': volume})
+                                                method='POST',
+                                                data={'volume': volume})
         return self._to_volume(resp.object)
 
     def destroy_volume(self, volume):
         return self.volumev2_connection.request('/volumes/%s' % volume.id,
-                                       method='DELETE').success()
+                                                method='DELETE').success()
 
     def ex_list_snapshots(self):
         return self._to_snapshots(
@@ -3108,13 +3108,13 @@ class OpenStack_2_NodeDriver(OpenStack_1_1_NodeDriver):
         if ex_description is not None:
             data['snapshot']['description'] = ex_description
 
-        return self._to_snapshot(self.volumev2_connection.request('/snapshots',
-                                                         method='POST',
-                                                         data=data).object)
+        return self._to_snapshot(
+            self.volumev2_connection.request('/snapshots', method='POST',
+                                             data=data).object)
 
     def destroy_volume_snapshot(self, snapshot):
         resp = self.volumev2_connection.request('/snapshots/%s' % snapshot.id,
-                                       method='DELETE')
+                                                method='DELETE')
         return resp.status == httplib.ACCEPTED
 
 

Reply via email to