From ae8c3067c5567aa479661ae22964d84470b48c47 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 1 Sep 2020 15:56:02 +0100 Subject: [PATCH] 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 --- nova/virt/libvirt/vif.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/virt/libvirt/vif.py b/nova/virt/libvirt/vif.py index eeab8b019074..54bb04ab2eeb 100644 --- a/nova/virt/libvirt/vif.py +++ b/nova/virt/libvirt/vif.py @@ -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