Reviewed: https://review.openstack.org/47250 Committed: http://github.com/openstack/nova/commit/d1d1515a610bee2c78e8275b63b09a0301dd9206 Submitter: Jenkins Branch: master
commit d1d1515a610bee2c78e8275b63b09a0301dd9206 Author: Davanum Srinivas <email address hidden> Date: Wed Sep 18 16:46:35 2013 -0400
Fix for os-availability-zone/detail returning 500
if there are no enabled_services, then zone_hosts is very likely to be empty, which means zone_hosts['nova'] will fail. So let's use get with a default of empty array to cover this case. Added a fix/test for v3 API as well.
Fixes LP# 1226791
Change-Id: I602c96242291fd9a4bdf67af6445aa935ec7f7e3
Reviewed: https:/ /review. openstack. org/47250 github. com/openstack/ nova/commit/ d1d1515a610bee2 c78e8275b63b09a 0301dd9206
Committed: http://
Submitter: Jenkins
Branch: master
commit d1d1515a610bee2 c78e8275b63b09a 0301dd9206
Author: Davanum Srinivas <email address hidden>
Date: Wed Sep 18 16:46:35 2013 -0400
Fix for os-availability -zone/detail returning 500
if there are no enabled_services, then zone_hosts is very likely
to be empty, which means zone_hosts['nova'] will fail. So let's
use get with a default of empty array to cover this case. Added
a fix/test for v3 API as well.
Fixes LP# 1226791
Change-Id: I602c96242291fd 9a4bdf67af6445a a935ec7f7e3