From 0d6535242db07968206b3af15046f62a30748449 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Mon, 20 Feb 2017 17:36:36 +0100 Subject: Fix validation of generated code Importing modules with the same name will not reload an already imported module. Explicitly reloading the module is the quickest fix. --- roles/lib_utils/src/class/repoquery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/lib_utils') diff --git a/roles/lib_utils/src/class/repoquery.py b/roles/lib_utils/src/class/repoquery.py index 2447719e2..82adcada5 100644 --- a/roles/lib_utils/src/class/repoquery.py +++ b/roles/lib_utils/src/class/repoquery.py @@ -60,7 +60,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: -- cgit v1.2.1