mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
6cef37f310
First, `shlex.split()` will raise an exception when passed a unicode type with unicode characters in the string. This modifies our `shlex.split()` helper to first convert the passed string to a `str` type, and then return a decoded copy of the result of the split. Second, this uses our `to_unicode` helper to more gracefully decode the stdout and stderr from the command. Unit tests have been added to confirm that the output is properly decoded, including instances where decoding fails because the return from the command contains binary data. |
||
---|---|---|
.. | ||
autosign_grains | ||
conf | ||
engines | ||
ext-conf | ||
extension_modules | ||
file | ||
file.replace | ||
log_handlers | ||
over | ||
pillar/base | ||
saltclass/examples | ||
ssh | ||
autosign_file | ||
ext.yaml | ||
hosts | ||
mysql_returner_archiver_data.sql | ||
reactor-sync-minion.sls |