From bddadc9565e3dd3e0f98a1bb986c0ad96f743d84 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Sat, 4 Jul 2015 23:18:54 -0400 Subject: [PATCH] Fix bug in relative path determination --- lib/ansible/parsing/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/parsing/__init__.py b/lib/ansible/parsing/__init__.py index 9551343fbf4..027691d18ea 100644 --- a/lib/ansible/parsing/__init__.py +++ b/lib/ansible/parsing/__init__.py @@ -211,12 +211,12 @@ class DataLoader(): if os.path.exists(source2): self.set_basedir(cur_basedir) return source2 + self.set_basedir(cur_basedir) obvious_local_path = self.path_dwim(source) if os.path.exists(obvious_local_path): - self.set_basedir(cur_basedir) + #self.set_basedir(cur_basedir) return obvious_local_path - self.set_basedir(cur_basedir) - return source2 # which does not exist + return source2