libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erjoh...@apache.org
Subject [1/3] libcloud git commit: addressing feedback
Date Tue, 31 Oct 2017 15:55:11 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk a94f92826 -> 5aa717271


addressing feedback

Signed-off-by: Eric Johnson <erjohnso@google.com>


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

Branch: refs/heads/trunk
Commit: 42285f89a43211dcb14e92fb60fbe7c3917f262b
Parents: c717e07
Author: Eric Johnson <erjohnso@google.com>
Authored: Tue Oct 31 15:02:44 2017 +0000
Committer: Eric Johnson <erjohnso@google.com>
Committed: Tue Oct 31 15:54:01 2017 +0000

----------------------------------------------------------------------
 libcloud/compute/drivers/gce.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/42285f89/libcloud/compute/drivers/gce.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py
index 48154e6..893fd96 100644
--- a/libcloud/compute/drivers/gce.py
+++ b/libcloud/compute/drivers/gce.py
@@ -1957,10 +1957,9 @@ class GCENodeDriver(NodeDriver):
         """
         if not isinstance(image, NodeImage):
             raise ValueError("Must specify a valid libcloud image object.")
-        image_name = image.name
         current_fp = image.extra['labelFingerprint']
         body = {'labels': labels, 'labelFingerprint': current_fp}
-        request = '/global/%s/setLabels' % (image_name)
+        request = '/global/%s/setLabels' % (image.name)
         self.connection.async_request(request, method='POST', data=body)
         return True
 


Mime
View raw message