summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-09-06 14:40:51 +0000
committerGerrit Code Review <review@openstack.org>2017-09-06 14:40:51 +0000
commitefcec59cfac715cf11bcc89c59dcb9aa77256b2f (patch)
treea22705150bcac76db0851a75ca3bee682457404a
parentdbdca9de9f388c02e7b85b8fc03b0353ea0ff37b (diff)
parent1d804fdf2c2961ef8d5fa8e4dc099873e8d3918c (diff)
Merge "Fixes wsman's methods"
-rw-r--r--oswin_tempest_plugin/clients/wsman.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/oswin_tempest_plugin/clients/wsman.py b/oswin_tempest_plugin/clients/wsman.py
index 3a0806d..fa96952 100644
--- a/oswin_tempest_plugin/clients/wsman.py
+++ b/oswin_tempest_plugin/clients/wsman.py
@@ -70,13 +70,13 @@ def run_wsman_cmd(host, cmd, username, password=None,
70 70
71 71
72def run_wsman_ps(host, cmd, username, password, cert_pem_path=None, 72def run_wsman_ps(host, cmd, username, password, cert_pem_path=None,
73 cert_key_pem_path=None, transport='plaintext', 73 cert_key_pem_path=None, transport_method='plaintext',
74 fail_on_error=True): 74 fail_on_error=True):
75 75
76 cmd = ("powershell -NonInteractive -ExecutionPolicy RemoteSigned " 76 cmd = ("powershell -NonInteractive -ExecutionPolicy RemoteSigned "
77 "-Command \"%s\"" % cmd) 77 "-Command \"%s\"" % cmd)
78 return run_wsman_cmd(host, cmd, username, password, cert_pem_path, 78 return run_wsman_cmd(host, cmd, username, password, cert_pem_path,
79 cert_key_pem_path, fail_on_error) 79 cert_key_pem_path, transport_method, fail_on_error)
80 80
81 81
82def run_hv_host_wsman_ps(host, cmd, fail_on_error=True): 82def run_hv_host_wsman_ps(host, cmd, fail_on_error=True):
@@ -86,4 +86,5 @@ def run_hv_host_wsman_ps(host, cmd, fail_on_error=True):
86 password=CONF.hyperv_host_auth.password, 86 password=CONF.hyperv_host_auth.password,
87 cert_pem_path=CONF.hyperv_host_auth.cert_pem_path, 87 cert_pem_path=CONF.hyperv_host_auth.cert_pem_path,
88 cert_key_pem_path=CONF.hyperv_host_auth.cert_key_pem_path, 88 cert_key_pem_path=CONF.hyperv_host_auth.cert_key_pem_path,
89 transport='plaintext', fail_on_error=fail_on_error) 89 transport_method=CONF.hyperv_host_auth.transport_method,
90 fail_on_error=fail_on_error)