From 7c674fc19cd73d5cd0c5b78a7ea43aed699e48ac Mon Sep 17 00:00:00 2001 From: Joost Molenaar Date: Tue, 3 Nov 2015 15:17:35 +0100 Subject: [PATCH] Make sure potential_names is not dependent on hashing order --- lib/ansible/utils/plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils/plugins.py b/lib/ansible/utils/plugins.py index 14953d8f44a..4606f6cee31 100644 --- a/lib/ansible/utils/plugins.py +++ b/lib/ansible/utils/plugins.py @@ -165,7 +165,7 @@ class PluginLoader(object): else: suffixes = ['.py', ''] - potential_names = frozenset('%s%s' % (name, s) for s in suffixes) + potential_names = list('%s%s' % (name, s) for s in suffixes) for full_name in potential_names: if full_name in self._plugin_path_cache: return self._plugin_path_cache[full_name]