Commit 019f775a by Michael DeHaan

DWIM the paths for first_available_file

parent 6fa1a490
......@@ -54,6 +54,7 @@ class ActionModule(object):
found = False
for fn in inject.get('first_available_file'):
fn = utils.template(self.runner.basedir, fn, inject)
fn = utils.path_dwim(self.runner.basedir, fn)
if os.path.exists(fn):
source = fn
found = True
......
......@@ -57,6 +57,7 @@ class ActionModule(object):
found = False
for fn in self.runner.module_vars.get('first_available_file'):
fn = utils.template(self.runner.basedir, fn, inject)
fn = utils.path_dwim(self.runner.basedir, fn)
if os.path.exists(fn):
source = fn
found = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment