Reviewed: https://review.openstack.org/227199 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=ccea5d6b0ace535b375d3e63bd572885cb5dbc91 Submitter: Jenkins Branch: master
commit ccea5d6b0ace535b375d3e63bd572885cb5dbc91 Author: Sylvain Bauza <email address hidden> Date: Thu Sep 24 11:49:01 2015 +0200
Fix NoneType error when calling MetricsWeigher
Given that dict comprehensions don't allow to have None as a list, we had a problem with the Ironic gate-ironic-inspector-dsvm job because host_state.metrics was set to None by default.
Adding a unittest to make sure we don't regress.
Closes-Bug: #1499271 Change-Id: I6e3104bbd9b9865ec2dcc724c2f56da6d0b2b687
Reviewed: https:/ /review. openstack. org/227199 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ccea5d6b0ac e535b375d3e63bd 572885cb5dbc91
Committed: https:/
Submitter: Jenkins
Branch: master
commit ccea5d6b0ace535 b375d3e63bd5728 85cb5dbc91
Author: Sylvain Bauza <email address hidden>
Date: Thu Sep 24 11:49:01 2015 +0200
Fix NoneType error when calling MetricsWeigher
Given that dict comprehensions don't allow to have None as a list, we had inspector- dsvm job because state.metrics was set to None by default.
a problem with the Ironic gate-ironic-
host_
Adding a unittest to make sure we don't regress.
Closes-Bug: #1499271 5ec2dcc724c2f56 da6d0b2b687
Change-Id: I6e3104bbd9b986