Skip to content

Commit d6e82ce

Browse files
authored
fence_vmware_soap: Use --login-timeout option (#447)
* fence_vmware_soap: Use --login-timeout option * Set timeout to 60s when disable-timeouts is used Fixes issue #446.
1 parent 9c36b83 commit d6e82ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agents/vmware_soap/fence_vmware_soap.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ def soap_login(options):
5757

5858
try:
5959
headers = {"Content-Type" : "text/xml;charset=UTF-8", "SOAPAction" : "vim25"}
60-
conn = Client(url + "/vimService.wsdl", location=url, transport=RequestsTransport(verify=verify), headers=headers)
60+
login_timeout = int(options["--login-timeout"]) or 60
61+
conn = Client(url + "/vimService.wsdl", location=url, transport=RequestsTransport(verify=verify), headers=headers, timeout=login_timeout)
6162

6263
mo_ServiceInstance = Property('ServiceInstance')
6364
mo_ServiceInstance._type = 'ServiceInstance'

0 commit comments

Comments
 (0)