Merge pull request #50329 from twangboy/fix_cloud_winrm

Check WinRM port before initiating connection
This commit is contained in:
Nicole Thomas 2018-11-01 09:06:41 -04:00 committed by GitHub
commit ab8e8450c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -850,6 +850,9 @@ def wait_for_winrm(host, port, username, password, timeout=900, use_ssl=True, ve
'''
Wait until WinRM connection can be established.
'''
# Ensure the winrm service is listening before attempting to connect
wait_for_port(host=host, port=port, timeout=timeout)
start = time.time()
log.debug(
'Attempting WinRM connection to host {0} on port {1}'.format(