1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-21 17:29:59 -05:00

To allow skip certificates

Signed-off-by: Juan Sierra Pons <juan@elsotanillo.net>
This commit is contained in:
Juan Sierra Pons 2021-05-22 14:54:01 +02:00
parent 647be2cc71
commit ab18fab9f8
2 changed files with 4 additions and 2 deletions

View File

@ -72,7 +72,8 @@ class AdministratorClient(object):
# Login to vCenter # Login to vCenter
stub_config = vapiconnect.connect(host=args.server, stub_config = vapiconnect.connect(host=args.server,
user=args.username, user=args.username,
pwd=args.password) pwd=args.password,
skip_verification=args.skipverification)
# Create admin stub # Create admin stub
self.admin_client = Administrators(stub_config) self.admin_client = Administrators(stub_config)
self.cleanup = args.cleardata self.cleanup = args.cleardata

View File

@ -86,7 +86,8 @@ class LinksClient(object):
# Login to vCenter # Login to vCenter
stub_config = vapiconnect.connect(host=args.server, stub_config = vapiconnect.connect(host=args.server,
user=args.username, user=args.username,
pwd=args.password) pwd=args.password,
skip_verification=args.skipverification)
# Create links stub # Create links stub
self.links_client = Links(stub_config) self.links_client = Links(stub_config)