summaryrefslogtreecommitdiffstats
path: root/roles/lib_utils/library
diff options
context:
space:
mode:
authorJeff Peeler <jpeeler@redhat.com>2017-05-12 18:51:26 -0400
committerJeff Peeler <jpeeler@redhat.com>2017-05-13 11:04:39 -0400
commit7fb814d6197c581b0dfcc974a5b0a4646eab6cea (patch)
tree9eb2c59ef857a51ebafdef32f4cf9317246d86c0 /roles/lib_utils/library
parent56cc912451a9da3cb603db85edb01fb2d8d92ac8 (diff)
downloadopenshift-7fb814d6197c581b0dfcc974a5b0a4646eab6cea.tar.gz
openshift-7fb814d6197c581b0dfcc974a5b0a4646eab6cea.tar.bz2
openshift-7fb814d6197c581b0dfcc974a5b0a4646eab6cea.tar.xz
openshift-7fb814d6197c581b0dfcc974a5b0a4646eab6cea.zip
Fix python3 error in repoquery
Explicitly convert from bytes to string so that splitting the string is successful. This change works with python 2 as well. Closes #4182
Diffstat (limited to 'roles/lib_utils/library')
-rw-r--r--roles/lib_utils/library/repoquery.py2
1 files changed, 1 insertions, 1 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 = {}