mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
ed94700255
commit
09048139c7
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue