This is an automated email from the ASF dual-hosted git repository. tomaz pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit 45a2deb82ca222a442142be76fe30ea7fdb53b76 Author: Poul Petersen <[email protected]> AuthorDate: Mon Aug 24 11:21:03 2020 -0700 Fixes request path for ex_set_image_labels() --- libcloud/compute/drivers/gce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py index a5cb5b4..dbc3977 100644 --- a/libcloud/compute/drivers/gce.py +++ b/libcloud/compute/drivers/gce.py @@ -2087,7 +2087,7 @@ class GCENodeDriver(NodeDriver): raise ValueError("Must specify a valid libcloud image object.") current_fp = image.extra['labelFingerprint'] body = {'labels': labels, 'labelFingerprint': current_fp} - request = '/global/%s/setLabels' % (image.name) + request = '/global/images/%s/setLabels' % (image.name) self.connection.async_request(request, method='POST', data=body) return True
