Mcollective uses sustemu module to execute shell commands. This module
doesn't care about encoding and as a result we get shotgun stdout as a
string with ASCII-8BIT encoding. Later we get a failure at the attempt
to encode it to JSON. However, shotgun output depends on locale settings
and is usually UTF-8.
Reviewed: https:/ /review. openstack. org/346741 /git.openstack. org/cgit/ openstack/ fuel-astute/ commit/ ?id=90d0aa8ecd1 677c9ec00b7ea9f f5e3dee6f9bc51
Committed: https:/
Submitter: Jenkins
Branch: master
commit 90d0aa8ecd1677c 9ec00b7ea9ff5e3 dee6f9bc51
Author: Georgy Kibardin <email address hidden>
Date: Mon Jul 25 15:29:11 2016 +0300
Fix encoding of shotgun stdout
Mcollective uses sustemu module to execute shell commands. This module
doesn't care about encoding and as a result we get shotgun stdout as a
string with ASCII-8BIT encoding. Later we get a failure at the attempt
to encode it to JSON. However, shotgun output depends on locale settings
and is usually UTF-8.
Change-Id: I838f1aa55ea288 5c1353a352c537d fe1bcd1e7e3
Closes-Bug: #1604311