From 1d804fdf2c2961ef8d5fa8e4dc099873e8d3918c Mon Sep 17 00:00:00 2001 From: Claudiu Belu Date: Wed, 6 Sep 2017 04:23:28 -0700 Subject: [PATCH] Fixes wsman's methods In a previous patch, a few extra arguments were added to wsman's functions, but the argument names were a bit inconsistent, or not passed correctly. This patch addresses this issue. Change-Id: I93ee19248bb8fd511d3a42265d936cd2fff2839f --- oswin_tempest_plugin/clients/wsman.py | 7 ++++--- 1 file 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, def run_wsman_ps(host, cmd, username, password, cert_pem_path=None, - cert_key_pem_path=None, transport='plaintext', + cert_key_pem_path=None, transport_method='plaintext', fail_on_error=True): cmd = ("powershell -NonInteractive -ExecutionPolicy RemoteSigned " "-Command \"%s\"" % cmd) return run_wsman_cmd(host, cmd, username, password, cert_pem_path, - cert_key_pem_path, fail_on_error) + cert_key_pem_path, transport_method, fail_on_error) def 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): password=CONF.hyperv_host_auth.password, cert_pem_path=CONF.hyperv_host_auth.cert_pem_path, cert_key_pem_path=CONF.hyperv_host_auth.cert_key_pem_path, - transport='plaintext', fail_on_error=fail_on_error) + transport_method=CONF.hyperv_host_auth.transport_method, + fail_on_error=fail_on_error)