heat/heat
Feilong Wang 77b8395e7d Support handling empty string for volume AZ
When building a complex stack, instance and volume are both
necessary. But the support of AZ in Nova and Cinder are slightly
different which is causing troubles to build the Heat template.
Without setting, the property availability_zone of volume always
got "", an empty string, instead of None. As a result, Cinder will
return 400 BadRequest error. This patch will turn the empty
string into None, to make sure Cinder can correctly handle the
scenario when availability_zone of volume is not set.

Task: 38853
Story: 2007330

Change-Id: Ib5bddf12ca63849a030d1d579d0a2e853e8b848a
(cherry picked from commit 50d72b8c0b)
2020-02-26 14:02:33 +13:00
..
api middleware: return HTTPBadRequest when path is invalid 2018-09-11 11:23:46 +02:00
cloudinit Validate that python3 is ready for loguserdata 2016-08-26 11:49:30 +00:00
cmd Merge "change import order" 2019-09-26 06:45:08 +00:00
common Add retries when loading keystone data and fetching endpoints 2019-08-23 21:34:31 +05:30
db Don't use wrap_db_retry on subtransaction in resource_create_replacement() 2019-10-18 15:30:01 +00:00
engine Support handling empty string for volume AZ 2020-02-26 14:02:33 +13:00
hacking Restrict use of iteritems, iterkeys and itervalues 2016-03-23 10:05:54 +00:00
httpd Remove unnecessary shebangs from service scripts 2018-08-01 10:53:51 +05:30
locale Imported Translations from Zanata 2019-11-19 07:36:42 +00:00
objects Streamline conversion of resources to convergence 2018-12-17 16:59:25 +13:00
policies Add a Blazar Host resource 2019-02-18 06:41:23 +00:00
rpc Option for retrieving child templates and env files from swift 2018-07-26 09:50:51 +05:30
scaling Merge "Eliminate nested stack loading in InstanceGroup/ASG scaling" 2018-04-02 04:35:47 +00:00
tests Support handling empty string for volume AZ 2020-02-26 14:02:33 +13:00
__init__.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
version.py change the dist name to 'openstack-heat' 2018-11-01 11:54:05 -04:00