Show More
@@ -37,7 +37,7 b' def wait_for_winrm(host, username, passw' | |||||
37 | try: |
|
37 | try: | |
38 | client = Client(host, username=username, password=password, |
|
38 | client = Client(host, username=username, password=password, | |
39 | ssl=ssl, connection_timeout=5) |
|
39 | ssl=ssl, connection_timeout=5) | |
40 |
client.execute_ |
|
40 | client.execute_ps("Write-Host 'Hello, World!'") | |
41 | return client |
|
41 | return client | |
42 | except requests.exceptions.ConnectionError: |
|
42 | except requests.exceptions.ConnectionError: | |
43 | if time.time() >= end_time: |
|
43 | if time.time() >= end_time: |
General Comments 0
You need to be logged in to leave comments.
Login now