From 53a7ab74c81ae9c3e69b8352413fada1e72461b8 Mon Sep 17 00:00:00 2001 From: Serge van Ginderachter Date: Thu, 2 May 2013 13:58:23 +0200 Subject: [PATCH] use os.path.join instead of hardcoded unix separator in first_found lookup plugin --- lib/ansible/runner/lookup_plugins/first_found.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/lookup_plugins/first_found.py b/lib/ansible/runner/lookup_plugins/first_found.py index 95ce804aec4..d3d53d0ff00 100644 --- a/lib/ansible/runner/lookup_plugins/first_found.py +++ b/lib/ansible/runner/lookup_plugins/first_found.py @@ -152,7 +152,7 @@ class LookupModule(object): else: for path in pathlist: for fn in filelist: - f = path + '/' + fn + os.path.join(path, fn) total_search.append(f) else: total_search = [term]