Fix pylint problems with vmware_list_vms.py
(cherry picked from commit fc9ccb51ee
)
This commit is contained in:
parent
0dd9ffab92
commit
850c35a613
@ -20,6 +20,7 @@ RUN dnf -y install \
|
||||
python3-sphinx \
|
||||
python3-rpmfluff \
|
||||
python3-librepo \
|
||||
python3-pyvmomi \
|
||||
beakerlib \
|
||||
sudo \
|
||||
tito \
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user