Do not show whole env in error

Change var names  so  we only show parts of stderr and stout and not the whole env.
This commit is contained in:
psyer 2018-03-13 13:46:55 -04:00
parent ed94700255
commit 09048139c7

View file

@ -445,9 +445,9 @@ def _run(cmd,
stdout=subprocess.PIPE,
stdin=subprocess.PIPE
).communicate(py_code.encode(__salt_system_encoding__))
env_encoded_err = env_encoded[1]
env_encoded = env_encoded[0]
env_encoded_org = env_encoded
env_encoded = env_encoded_org[0]
env_encoded_err = env_encoded_org[1]
env_mark = env_encoded.find(marker + '\n')
if env_mark < 0:
raise CommandExecutionError(