Comment 2 for bug 1499271

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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