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: I6e3104bbd9b9865ec2dcc724c2f56da6d0b2b687changes/99/227199/2
parent
2dae8b4c87
commit
ccea5d6b0a
Loading…
Reference in New Issue