libvirt: Use local variable instead of CONF

Address a comment from https://review.opendev.org/#/c/730866/

Change-Id: Ie55c0563296f47c3346a2af94da050607cd90f0e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane 2020-09-01 15:56:02 +01:00
parent e9eb52dee4
commit ae8c3067c5
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ class LibvirtGenericVIFDriver(object):
if driver == 'vhost' or driver is None:
# vhost backend only supports update of RX queue size
if CONF.libvirt.rx_queue_size:
if rx_queue_size:
# TODO(sahid): Specifically force driver to be vhost
# that because if None we don't generate the XML
# driver element needed to set the queue size