Преглед изворни кода

Another GCE labels change for py2

Enis Afgan пре 7 година
родитељ
комит
75314f23e0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      cloudbridge/cloud/providers/gce/helpers.py

+ 1 - 1
cloudbridge/cloud/providers/gce/helpers.py

@@ -167,7 +167,7 @@ def change_label(resource, key, value, res_att, request):
     # The returned value from above command yields a unicode dict key, which
     # cannot be be simply cast into a str for py2 so pop the key and re-add it
     labels.pop(key, None)
-    labels[key] = value
+    labels[key] = str(value)
     request_body = {
         "labels": labels,
         "labelFingerprint":