libvirt:Remove duplicated check code for config option sysinfo_serial
In oslo.config StrOpt provide parameter choices, that means the option's
value must be in the choices, otherewise an exception will be raised.
The current exception is NoSuchOptError.
sysinfo_serial_funcs.get(CONF.libvirt.sysinfo_serial) always return
non-None value, so remove duplicatd check code.
Reviewed: https:/ /review. openstack. org/198285 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ae3d970db30 2b48db90a03f32f fa54aa55d9f0e4
Committed: https:/
Submitter: Jenkins
Branch: master
commit ae3d970db302b48 db90a03f32ffa54 aa55d9f0e4
Author: ChangBo Guo(gcb) <email address hidden>
Date: Fri Jul 3 17:51:46 2015 +0800
libvirt:Remove duplicated check code for config option sysinfo_serial
In oslo.config StrOpt provide parameter choices, that means the option's serial_ funcs.get( CONF.libvirt. sysinfo_ serial) always return
value must be in the choices, otherewise an exception will be raised.
The current exception is NoSuchOptError.
sysinfo_
non-None value, so remove duplicatd check code.
Change-Id: If9ff88a69a70b8 6dd72916f5926c3 e47516b5e3b
Partial-Bug: #1471168