Skip to content

Commit

Permalink
fix file copier error
Browse files Browse the repository at this point in the history
  • Loading branch information
ltamaster committed Dec 5, 2023
1 parent e518943 commit 5c1d131
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions contents/winrm-exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ def httpclient_log(*args):
else:
cleanescapingflg = False

if "RD_CONFIG_ENABLEHTTPDEBUG" in os.environ:
if os.getenv("RD_CONFIG_ENABLEHTTPDEBUG") == "true":
if "RD_CONFIG_ENABLEDHTTPDEBUG" in os.environ:
if os.getenv("RD_CONFIG_ENABLEDHTTPDEBUG") == "true":
enabledHttpDebug = True
else:
enabledHttpDebug = False
Expand Down
7 changes: 4 additions & 3 deletions contents/winrm-filecopier.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ def winrm_upload(self,
forceTicket = False
override=False
enabledHttpDebug = False
readtimeout = None
operationtimeout = None

if os.environ.get('RD_CONFIG_OVERRIDE') == 'true':
override = True
Expand Down Expand Up @@ -325,8 +327,8 @@ def winrm_upload(self,
if "RD_CONFIG_OPERATIONTIMEOUT" in os.environ:
operationtimeout = os.getenv("RD_CONFIG_OPERATIONTIMEOUT")

if "RD_CONFIG_ENABLEHTTPDEBUG" in os.environ:
if os.getenv("RD_CONFIG_ENABLEHTTPDEBUG") == "true":
if "RD_CONFIG_ENABLEDHTTPDEBUG" in os.environ:
if os.getenv("RD_CONFIG_ENABLEDHTTPDEBUG") == "true":
enabledHttpDebug = True
else:
enabledHttpDebug = False
Expand All @@ -335,7 +337,6 @@ def winrm_upload(self,
httpclient_logging_patch(logging.DEBUG)

endpoint = transport+'://'+args.hostname+':'+port

arguments = {}
arguments["transport"] = authentication

Expand Down

0 comments on commit 5c1d131

Please sign in to comment.