diff options
author | OpenShift Bot <eparis+openshiftbot@redhat.com> | 2017-05-18 17:29:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-18 17:29:10 -0500 |
commit | befb34ac3ad6f20e602e0350401638af8a156a82 (patch) | |
tree | aea0aaff5851ce63bcfd49146934d3c86600c06d /roles | |
parent | 26770148f9c012c710013f32295d822a175529f8 (diff) | |
parent | 7fb814d6197c581b0dfcc974a5b0a4646eab6cea (diff) | |
download | openshift-befb34ac3ad6f20e602e0350401638af8a156a82.tar.gz openshift-befb34ac3ad6f20e602e0350401638af8a156a82.tar.bz2 openshift-befb34ac3ad6f20e602e0350401638af8a156a82.tar.xz openshift-befb34ac3ad6f20e602e0350401638af8a156a82.zip |
Merge pull request #4183 from jpeeler/master
Merged by openshift-bot
Diffstat (limited to 'roles')
-rw-r--r-- | roles/lib_utils/library/repoquery.py | 2 | ||||
-rw-r--r-- | roles/lib_utils/src/class/repoquery.py | 2 | ||||
-rwxr-xr-x | roles/lib_utils/src/test/unit/test_repoquery.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/roles/lib_utils/library/repoquery.py b/roles/lib_utils/library/repoquery.py index cf33e48d5..95a305b58 100644 --- a/roles/lib_utils/library/repoquery.py +++ b/roles/lib_utils/library/repoquery.py @@ -465,7 +465,7 @@ class Repoquery(RepoqueryCLI): version_dict = defaultdict(dict) - for version in query_output.split('\n'): + for version in query_output.decode().split('\n'): pkg_info = version.split("|") pkg_version = {} diff --git a/roles/lib_utils/src/class/repoquery.py b/roles/lib_utils/src/class/repoquery.py index 28e3a3e89..e997780ad 100644 --- a/roles/lib_utils/src/class/repoquery.py +++ b/roles/lib_utils/src/class/repoquery.py @@ -48,7 +48,7 @@ class Repoquery(RepoqueryCLI): version_dict = defaultdict(dict) - for version in query_output.split('\n'): + for version in query_output.decode().split('\n'): pkg_info = version.split("|") pkg_version = {} diff --git a/roles/lib_utils/src/test/unit/test_repoquery.py b/roles/lib_utils/src/test/unit/test_repoquery.py index 9991ecd14..325f41dab 100755 --- a/roles/lib_utils/src/test/unit/test_repoquery.py +++ b/roles/lib_utils/src/test/unit/test_repoquery.py @@ -45,7 +45,7 @@ class RepoQueryTest(unittest.TestCase): # Return values of our mocked function call. These get returned once per call. mock_cmd.side_effect = [ - (0, '4.2.46|21.el7_3|x86_64|rhel-7-server-rpms|4.2.46-21.el7_3', valid_stderr), # first call to the mock + (0, b'4.2.46|21.el7_3|x86_64|rhel-7-server-rpms|4.2.46-21.el7_3', valid_stderr), # first call to the mock ] # Act |