From 555956f1d19800114a6f422de78816859aaa7bdc Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Thu, 6 Dec 2018 20:32:11 +0100 Subject: Remove duplicated code in vnfs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It mainly leverages on functest_utils instead of duplicating. Change-Id: I97dc9215a835d3e7f1527b565132f667f09f2b7e Signed-off-by: Cédric Ollivier --- functest/opnfv_tests/openstack/vgpu/vgpu.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'functest/opnfv_tests/openstack') diff --git a/functest/opnfv_tests/openstack/vgpu/vgpu.py b/functest/opnfv_tests/openstack/vgpu/vgpu.py index 12f183e4e..c8180a45c 100644 --- a/functest/opnfv_tests/openstack/vgpu/vgpu.py +++ b/functest/opnfv_tests/openstack/vgpu/vgpu.py @@ -49,6 +49,5 @@ class VGPU(singlevm.SingleVm2): 'VGA compatible controller: Nvidia' in lspci_output): self.__logger.info("The VM have a vGPU") return 0 - else: - self.__logger.error("The VM haven't any vGPU") - return 1 + self.__logger.error("The VM haven't any vGPU") + return 1 -- cgit 1.2.3-korg