Don't set empty kernel_id and ramdisk_id to glance image
In some cases, if 'allow_additional_properties' option is
disabled in Glance, 'kernel_id' and 'ramdisk_id' are considered
the usual properties and cannot have None values. So it's better
always omit these props and never send them to Glance if they are
empty.
Reviewed: https:/ /review. openstack. org/347971 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=2f2b0e954d7 738c2bf49a48a70 8cc0ce2b19e726
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2f2b0e954d7738c 2bf49a48a708cc0 ce2b19e726
Author: Mike Fedosin <email address hidden>
Date: Wed Jul 27 20:34:41 2016 +0300
Don't set empty kernel_id and ramdisk_id to glance image
In some cases, if 'allow_ additional_ properties' option is
disabled in Glance, 'kernel_id' and 'ramdisk_id' are considered
the usual properties and cannot have None values. So it's better
always omit these props and never send them to Glance if they are
empty.
Change-Id: I3dd2a3f39d31a7 9c86bdbe7b656d4 2c20c560af3
Closes-bug: #1596602