diff options
author | 2019-05-25 09:38:40 +0200 | |
---|---|---|
committer | 2019-05-25 11:24:42 +0200 | |
commit | 0e19012c4f11cc09c323476511893bbf3893a508 (patch) | |
tree | 288971a8bdf0eac310b9bc95834de08930886409 /functest/opnfv_tests/openstack/refstack | |
parent | 4b102db86a426d0b56168cb7621e9baa42aeb93b (diff) |
Set utf-8 in decode and encode calls
It eases backporting in iruya and hunter as a few logs can't be
decoded as ascii [1].
[1] https://build.opnfv.org/ci/job/functest-opnfv-functest-vnf-iruya-juju_epc-run/56/console
Change-Id: I52a6f9a25130cbf62e8ce3b9972064ab73177665
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 5853dd1ef3c522a975f9685250b1b3e85588f738)
Diffstat (limited to 'functest/opnfv_tests/openstack/refstack')
-rw-r--r-- | functest/opnfv_tests/openstack/refstack/refstack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functest/opnfv_tests/openstack/refstack/refstack.py b/functest/opnfv_tests/openstack/refstack/refstack.py index 49fa65826..645cc565b 100644 --- a/functest/opnfv_tests/openstack/refstack/refstack.py +++ b/functest/opnfv_tests/openstack/refstack/refstack.py @@ -52,7 +52,7 @@ class Refstack(tempest.TempestCommon): yaml_data2 = "" for line in output.splitlines(): try: - grp = re.search(r'^([^\[]*)(\[.*\])\n*$', line.decode()) + grp = re.search(r'^([^\[]*)(\[.*\])\n*$', line.decode("utf-8")) yaml_data2 = "{}\n{}: {}".format( yaml_data2, grp.group(1), grp.group(2)) except Exception: # pylint: disable=broad-except |