Actually ignore devices with no driver configured
get_devices() logs that it ignores but does skip the device: it is still indexed by
switch_idorswitch_infoand returned to the mechanism driver, which passes theNonedriver name to stevedore. The result is that neutron-server fails to start with “TypeError: sequence item 0: expected str instance, NoneType found”, which says nothing about the option that is missing.Add the missing continue, and one to the switch_id/switch_info branch so its intent is explicit rather than relying on nothing being indexed when neither is set.
Assisted-by: Claude Opus 5. Change-Id: Ic8b3a39e0b81e39a94e7e83977f6f5d88f71c6e6 Signed-off-by: Afonne-CID afonnepaulc@gmail.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号