diff options
author | Stephen Fromm <sfromm@gmail.com> | 2012-08-01 22:23:02 -0700 |
---|---|---|
committer | Stephen Fromm <sfromm@gmail.com> | 2012-08-01 22:23:02 -0700 |
commit | 52afacf47500442f3f7121fae45ad7f7cd3ea0e4 (patch) | |
tree | cf7c1e576424c7f21d5c71add24aa5101137c444 | |
parent | bf25193ec171533edee6c4098d9f8e2be056d199 (diff) | |
download | ansible-52afacf47500442f3f7121fae45ad7f7cd3ea0e4.tar.gz |
Fix module_fail_json call when symlink src does not exist
-rwxr-xr-x | library/file | 2 |
1 files changed, 1 insertions, 1 deletions
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) |