summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-04-01 19:43:38 +0000
committerGerrit Code Review <review@openstack.org>2013-04-01 19:43:38 +0000
commit505bf490a4152e7bc2f3e7aa76b54f9be9a009b8 (patch)
tree54e53ef99a3f122ac77f6757751b9ed68b189cfc /nova/api
parente9f3c310b5410c5672306b13b769db97ea48f42a (diff)
parenta11c41b48dff83a91eaa65630cc6aeb0e51e6461 (diff)
downloadnova-505bf490a4152e7bc2f3e7aa76b54f9be9a009b8.tar.gz
nova-505bf490a4152e7bc2f3e7aa76b54f9be9a009b8.tar.xz
nova-505bf490a4152e7bc2f3e7aa76b54f9be9a009b8.zip
Merge "Convert host value from unicode to a string."
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/compute/contrib/extended_availability_zone.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/compute/contrib/extended_availability_zone.py b/nova/api/openstack/compute/contrib/extended_availability_zone.py
index af557219f..a1ee85bcf 100644
--- a/nova/api/openstack/compute/contrib/extended_availability_zone.py
+++ b/nova/api/openstack/compute/contrib/extended_availability_zone.py
@@ -37,7 +37,7 @@ class ExtendedAZController(wsgi.Controller):
self.mc = memorycache.get_client()
def _get_host_az(self, context, instance):
- host = instance.get('host')
+ host = str(instance.get('host'))
if not host:
return None
cache_key = "azcache-%s" % host