From 52afacf47500442f3f7121fae45ad7f7cd3ea0e4 Mon Sep 17 00:00:00 2001 From: Stephen Fromm Date: Wed, 1 Aug 2012 22:23:02 -0700 Subject: [PATCH 1/2] 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 41b8a1d59de..3bc706a642f 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) From d0892c19ad5df28866fe686fae557fa1adf2329a Mon Sep 17 00:00:00 2001 From: Stephen Fromm Date: Wed, 1 Aug 2012 22:24:09 -0700 Subject: [PATCH 2/2] Add setype to file's argument_spec and remove secontext secontext is used internally and should not be in argument_spec --- library/file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/file b/library/file index 3bc706a642f..ad7b2b3b61d 100755 --- a/library/file +++ b/library/file @@ -224,7 +224,7 @@ def main(): seuser = dict(), serole = dict(), selevel = dict(), - secontext = dict(), + setype = dict(), ) )