Fix pylint problems with vmware_list_vms.py
This commit is contained in:
parent
a7e96ab828
commit
fc9ccb51ee
@ -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 \
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user