mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #50329 from twangboy/fix_cloud_winrm
Check WinRM port before initiating connection
This commit is contained in:
commit
ab8e8450c7
1 changed files with 3 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue