From 060a6a2d15be38ed578504e279becccf2c073792 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 --- file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file b/file index 41b8a1d59de..3bc706a642f 100755 --- a/file +++ b/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 c5066ebabf400283867be470820674bcbcfceb91 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 --- file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file b/file index 3bc706a642f..ad7b2b3b61d 100755 --- a/file +++ b/file @@ -224,7 +224,7 @@ def main(): seuser = dict(), serole = dict(), selevel = dict(), - secontext = dict(), + setype = dict(), ) )