summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-01-19 11:20:56 -0800
committerVishvananda Ishaya <vishvananda@gmail.com>2011-01-19 11:20:56 -0800
commitbeff00fbe9b9e05e265f3c4ce5b6670426e22de2 (patch)
treef8637ded72f60f433edaa194c45403c0ebe46db0 /nova/api
parent7d7fbf5dfd8a8e10f584df5d27d3479c4b2b4d3a (diff)
downloadnova-beff00fbe9b9e05e265f3c4ce5b6670426e22de2.tar.gz
nova-beff00fbe9b9e05e265f3c4ce5b6670426e22de2.tar.xz
nova-beff00fbe9b9e05e265f3c4ce5b6670426e22de2.zip
make sure params have no unicode keys
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/direct.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/api/direct.py b/nova/api/direct.py
index 81b3ae202..509ab3ae0 100644
--- a/nova/api/direct.py
+++ b/nova/api/direct.py
@@ -196,6 +196,8 @@ class ServiceWrapper(wsgi.Controller):
# TODO(termie): do some basic normalization on methods
method = getattr(self.service_handle, action)
+ # NOTE(vish): make sure we have no unicode keys for py2.6.
+ params = dict([(str(k), v) for (k, v) in params.iteritems()])
result = method(context, **params)
if type(result) is dict or type(result) is list:
return self._serialize(result, req)