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-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