Skip to content
Snippets Groups Projects
Commit 470abf7c authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

kamaki: Remove metadata string conversion

Remove the buggy conversion of metadata to strings
parent 3e92a98b
No related branches found
No related tags found
No related merge requests found
......@@ -172,13 +172,9 @@ class Kamaki(object):
def register(self, name, location, metadata, public=False):
"""Register an image with Cyclades"""
# Convert all metadata to strings
str_metadata = {}
for (key, value) in metadata.iteritems():
str_metadata[str(key)] = str(value)
is_public = 'true' if public else 'false'
params = {'is_public': is_public, 'disk_format': 'diskdump'}
return self.image.register(name, location, params, str_metadata)
return self.image.register(name, location, params, metadata)
def share(self, location):
"""Share this file with all the users"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment