diff options
author | Michael DeHaan <michael.dehaan@gmail.com> | 2012-08-01 19:42:31 -0400 |
---|---|---|
committer | Michael DeHaan <michael.dehaan@gmail.com> | 2012-08-01 19:42:31 -0400 |
commit | ed14312ad6ba58074dfcb4290f6e15b83b0c9ac9 (patch) | |
tree | f123db5482edb421879539b387b6a61b002da84e /library/file | |
parent | 08999a2a2fb8e7c31e9b405e6a8f469a4a058b01 (diff) | |
download | ansible-ed14312ad6ba58074dfcb4290f6e15b83b0c9ac9.tar.gz |
reinstate invalid argument checks where possible, daisy chainee/chained modules turn it off
Diffstat (limited to 'library/file')
-rwxr-xr-x | library/file | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/library/file b/library/file index e9089c569d..41b8a1d59d 100755 --- a/library/file +++ b/library/file @@ -212,7 +212,8 @@ def rmtree_error(func, path, exc_info): def main(): global module - module = AnsibleFileModule( + module = AnsibleModule( + check_invalid_arguments = False, argument_spec = dict( state = dict(choices=['file','directory','link','absent'], default='file'), path = dict(aliases=['dest', 'name'], required=True), @@ -348,12 +349,5 @@ def main(): # this is magic, see lib/ansible/module_common.py #<<INCLUDE_ANSIBLE_MODULE_COMMON>> - -class AnsibleFileModule(AnsibleModule): - - def _check_invalid_arguments(self): - # needed to support daisy chaining - pass - main() |