Fix details that ruin internal unicode objects
[kamaki] / kamaki / clients / image / __init__.py
index f1a6b3b..43bcbf1 100644 (file)
@@ -70,7 +70,7 @@ class ImageClient(Client):
         :returns: (list) id,name + full image info if detail
         """
         path = path4url('images', 'detail') if detail else (
-            path4url('images') + '/')
+            '%s/' % path4url('images'))
 
         async_params = {}
         if isinstance(filters, dict):
@@ -115,7 +115,7 @@ class ImageClient(Client):
 
         :returns: (dict) metadata of the created image
         """
-        path = path4url('images') + '/'
+        path = '%s/' % path4url('images')
         self.set_header('X-Image-Meta-Name', name)
         location = location if (
             isinstance(location, str) or isinstance(location, unicode)) else (