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: I838f1aa55ea2885c1353a352c537dfe1bcd1e7e3
Closes-Bug: #1604311
(cherry picked from commit 90d0aa8ecd1677c9ec00b7ea9ff5e3dee6f9bc51)
Reviewed: https:/ /review. openstack. org/357009 /git.openstack. org/cgit/ openstack/ fuel-astute/ commit/ ?id=4ee5991a8be 7c647e04a8ef439 42d2412aabfce7
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 4ee5991a8be7c64 7e04a8ef43942d2 412aabfce7
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 9ec00b7ea9ff5e3 dee6f9bc51)
Closes-Bug: #1604311
(cherry picked from commit 90d0aa8ecd1677c