summaryrefslogtreecommitdiffstats
path: root/roles/lib_utils/library
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2017-02-18 19:24:38 +0100
committerRodolfo Carvalho <rhcarvalho@gmail.com>2017-02-19 15:15:41 +0100
commitc321abec1294f0a76defa9b794edfbf05cded588 (patch)
tree77d5b83f88c0fa57a8200e4dcb0b7a91d7c9b784 /roles/lib_utils/library
parente7cbe87fd35963666f8007b36a5168ffd84f6107 (diff)
downloadopenshift-c321abec1294f0a76defa9b794edfbf05cded588.tar.gz
openshift-c321abec1294f0a76defa9b794edfbf05cded588.tar.bz2
openshift-c321abec1294f0a76defa9b794edfbf05cded588.tar.xz
openshift-c321abec1294f0a76defa9b794edfbf05cded588.zip
Fix tests on Python 3
Unlike in Python 2: - `range` doesn't return a list. - `dict.keys` doesn't return a list.
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 cc7aa04fd..f31c8911b 100644
--- a/roles/lib_utils/library/repoquery.py
+++ b/roles/lib_utils/library/repoquery.py
@@ -477,7 +477,7 @@ class Repoquery(RepoqueryCLI):
''' Gather and present the versions of each package '''
versions_dict = {}
- versions_dict['available_versions_full'] = formatted_versions.keys()
+ versions_dict['available_versions_full'] = list(formatted_versions.keys())
# set the match version, if called
if self.match_version: