libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From quent...@apache.org
Subject [07/13] libcloud git commit: use image_connection in v2 OS update_image
Date Fri, 02 Mar 2018 05:42:34 GMT
use image_connection in v2 OS update_image

Signed-off-by: Quentin Pradet <quentinp@apache.org>


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

Branch: refs/heads/trunk
Commit: 2321d34f7d095d98470c3bc1aaeb1d77b0d94bd6
Parents: 1da2550
Author: Rick van de Loo <rickvandeloo@gmail.com>
Authored: Sat Feb 10 19:01:49 2018 +0100
Committer: Quentin Pradet <quentinp@apache.org>
Committed: Fri Mar 2 09:34:26 2018 +0400

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/2321d34f/libcloud/compute/drivers/openstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/openstack.py b/libcloud/compute/drivers/openstack.py
index 28b708e..020b657 100644
--- a/libcloud/compute/drivers/openstack.py
+++ b/libcloud/compute/drivers/openstack.py
@@ -2570,12 +2570,17 @@ class OpenStack_2_NodeDriver(OpenStack_1_1_NodeDriver):
         """
         Patch a NodeImage. Can be used to set visibility
         :param      image_id: ID of the image which should be used
+
         :type       image_id: ``str``
         :param      data: The data to PATCH, either a dict or a list
+        for example: [
+          {'op': 'replace', 'path': '/visibility', 'value': 'shared'}
+        ]
+
         :type       data: ``dict|list``
         :rtype: :class:`NodeImage`
         """
-        response = self.connection.request(
+        response = self.image_connection.request(
             '/v2/images/%s' % (image_id,),
             headers={'Content-type': 'application/'
                                      'openstack-images-'


Mime
View raw message