Fix pylint problems with vmware_list_vms.py

(cherry picked from commit fc9ccb51ee)
This commit is contained in:
Brian C. Lane 2019-02-25 14:38:37 -08:00
parent 0dd9ffab92
commit 850c35a613
2 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@ RUN dnf -y install \
python3-sphinx \ python3-sphinx \
python3-rpmfluff \ python3-rpmfluff \
python3-librepo \ python3-librepo \
python3-pyvmomi \
beakerlib \ beakerlib \
sudo \ sudo \
tito \ tito \

View File

@ -7,7 +7,7 @@ import getpass
import ssl import ssl
from pyVim import connect from pyVim import connect
from pyVmomi import vim from pyVmomi import vim # pylint: disable=no-name-in-module
def setup_args(): def setup_args():
@ -46,7 +46,7 @@ def main():
user=args.username, user=args.username,
pwd=args.password, pwd=args.password,
sslContext=sslContext) sslContext=sslContext)
except: except Exception:
print("Unable to connect to %s" % args.host) print("Unable to connect to %s" % args.host)
return 1 return 1