diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-01-19 11:20:56 -0800 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-01-19 11:20:56 -0800 |
| commit | beff00fbe9b9e05e265f3c4ce5b6670426e22de2 (patch) | |
| tree | f8637ded72f60f433edaa194c45403c0ebe46db0 /nova/api | |
| parent | 7d7fbf5dfd8a8e10f584df5d27d3479c4b2b4d3a (diff) | |
| download | nova-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.py | 2 |
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) |
