From 52afacf47500442f3f7121fae45ad7f7cd3ea0e4 Mon Sep 17 00:00:00 2001 From: Stephen Fromm Date: Wed, 1 Aug 2012 22:23:02 -0700 Subject: [PATCH] Fix module_fail_json call when symlink src does not exist --- library/file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/file b/library/file index 41b8a1d59d..3bc706a642 100755 --- a/library/file +++ b/library/file @@ -322,7 +322,7 @@ def main(): else: abs_src = os.path.join(os.path.dirname(dest), src) if not os.path.exists(abs_src): - module_fail_json(dest=dest, src=src, msg='src file does not exist') + module_fail_json(path=path, src=src, msg='src file does not exist') if prev_state == 'absent': os.symlink(src, path)