From ab18fab9f8e7bb6dba9d74fe8089f2399dce48a3 Mon Sep 17 00:00:00 2001 From: Juan Sierra Pons Date: Sat, 22 May 2021 14:54:01 +0200 Subject: [PATCH] To allow skip certificates Signed-off-by: Juan Sierra Pons --- samples/vsphere/vcenter/hvc/administrator_client.py | 3 ++- samples/vsphere/vcenter/hvc/links_client.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/samples/vsphere/vcenter/hvc/administrator_client.py b/samples/vsphere/vcenter/hvc/administrator_client.py index 938d2036..85d5f183 100644 --- a/samples/vsphere/vcenter/hvc/administrator_client.py +++ b/samples/vsphere/vcenter/hvc/administrator_client.py @@ -72,7 +72,8 @@ class AdministratorClient(object): # Login to vCenter stub_config = vapiconnect.connect(host=args.server, user=args.username, - pwd=args.password) + pwd=args.password, + skip_verification=args.skipverification) # Create admin stub self.admin_client = Administrators(stub_config) self.cleanup = args.cleardata diff --git a/samples/vsphere/vcenter/hvc/links_client.py b/samples/vsphere/vcenter/hvc/links_client.py index e743ac45..ea4815a6 100644 --- a/samples/vsphere/vcenter/hvc/links_client.py +++ b/samples/vsphere/vcenter/hvc/links_client.py @@ -86,7 +86,8 @@ class LinksClient(object): # Login to vCenter stub_config = vapiconnect.connect(host=args.server, user=args.username, - pwd=args.password) + pwd=args.password, + skip_verification=args.skipverification) # Create links stub self.links_client = Links(stub_config)