diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-02-10 22:33:16 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-02-10 22:33:16 +0000 |
| commit | 810749b07bbfcd7c1ac55dac5c29938d9a000bf5 (patch) | |
| tree | 4b59c9787894efacf6fc2eaa51891725c08adbd9 /nova/api | |
| parent | d808ce11668c08bd896771f578f70e15f1eeb88d (diff) | |
| parent | cfa774eecee8f1fa800e9028f2c7f52a2ae028f6 (diff) | |
Merge "Force imageRef to be a string"
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/compute/servers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/compute/servers.py b/nova/api/openstack/compute/servers.py index 574c48644..42f4490c5 100644 --- a/nova/api/openstack/compute/servers.py +++ b/nova/api/openstack/compute/servers.py @@ -961,7 +961,7 @@ class Controller(wsgi.Controller): def _image_ref_from_req_data(self, data): try: - return data['server']['imageRef'] + return unicode(data['server']['imageRef']) except (TypeError, KeyError): msg = _("Missing imageRef attribute") raise exc.HTTPBadRequest(explanation=msg) |
