From 850c35a613557796043086774fce6d29be3c6e4d Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Mon, 25 Feb 2019 14:38:37 -0800 Subject: [PATCH] Fix pylint problems with vmware_list_vms.py (cherry picked from commit fc9ccb51ee3c676b283c6ff07a089f81dd853369) --- Dockerfile.test | 1 + tests/cleanup/vmware_list_vms.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile.test b/Dockerfile.test index a1140ca7..0894c4c3 100644 --- a/Dockerfile.test +++ b/Dockerfile.test @@ -20,6 +20,7 @@ RUN dnf -y install \ python3-sphinx \ python3-rpmfluff \ python3-librepo \ + python3-pyvmomi \ beakerlib \ sudo \ tito \ diff --git a/tests/cleanup/vmware_list_vms.py b/tests/cleanup/vmware_list_vms.py index 7724524d..d118af04 100755 --- a/tests/cleanup/vmware_list_vms.py +++ b/tests/cleanup/vmware_list_vms.py @@ -7,7 +7,7 @@ import getpass import ssl from pyVim import connect -from pyVmomi import vim +from pyVmomi import vim # pylint: disable=no-name-in-module def setup_args(): @@ -46,7 +46,7 @@ def main(): user=args.username, pwd=args.password, sslContext=sslContext) - except: + except Exception: print("Unable to connect to %s" % args.host) return 1