aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/vgpu/vgpu.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-12-06 20:32:11 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-12-07 07:48:15 +0100
commitb21dede23cb7577497fb7adf2775a77c45a37e36 (patch)
treee1fdb6a7042516cd268e03c9d700e36357df7886 /functest/opnfv_tests/openstack/vgpu/vgpu.py
parentad37203f74ec93945a422674a86994788b4d9e4b (diff)
Remove duplicated code in vnfsopnfv-7.1.0
It mainly leverages on functest_utils instead of duplicating. Change-Id: I97dc9215a835d3e7f1527b565132f667f09f2b7e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 555956f1d19800114a6f422de78816859aaa7bdc)
Diffstat (limited to 'functest/opnfv_tests/openstack/vgpu/vgpu.py')
-rw-r--r--functest/opnfv_tests/openstack/vgpu/vgpu.py5
1 files changed, 2 insertions, 3 deletions
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