Creating a metadef object without any properties associated with it
raises an Internal Server Error. It is easily reproducible by running
following glanceclient command:
The metadef object itself is created successfully, but the notification
is not fired and the response has code 500. Proposed patch fixes it by
making sure that notification system won't iterate over None value.
Reviewed: https:/ /review. openstack. org/168873 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=374d50a56e2 c6883798ddb4391 ba52eb004adddd
Committed: https:/
Submitter: Jenkins
Branch: master
commit 374d50a56e2c688 3798ddb4391ba52 eb004adddd
Author: Kamil Rykowski <email address hidden>
Date: Mon Mar 30 14:16:57 2015 +0200
Creating metadef object without any properties
Creating a metadef object without any properties associated with it
raises an Internal Server Error. It is easily reproducible by running
following glanceclient command:
glance --os-image- api-version 2 md-object-create --name obj_name
--schema '{"description": "some desc"}' OS::Software::DBMS
The metadef object itself is created successfully, but the notification
is not fired and the response has code 500. Proposed patch fixes it by
making sure that notification system won't iterate over None value.
Change-Id: I591801d80d9cb2 738dc3d27d7719f cc53a3d0645
Closes-Bug: 1438154