commit dbef0c2b5f54118677b73a08edb963e185631ea1 Author: Radek Novacek Date: Thu Oct 25 11:14:14 2012 +0200 Fix adding https:// to ESX url diff --git a/vsphere.py b/vsphere.py index 3dffca9..46b5fb3 100644 --- a/vsphere.py +++ b/vsphere.py @@ -114,9 +114,9 @@ class VSphere: self.url = "https://%s" % self.url # Connect to the vCenter server - self.client = suds.client.Client("%s/sdk/vimService.wsdl" % url) + self.client = suds.client.Client("%s/sdk/vimService.wsdl" % self.url) - self.client.set_options(location="%s/sdk" % url) + self.client.set_options(location="%s/sdk" % self.url) # Get Meta Object Reference to ServiceInstance which is the root object of the inventory self.moRef = suds.sudsobject.Property('ServiceInstance')