From 646d0e406df6ddc36903820081577aa3e2d996ef Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 29 Feb 2016 00:08:26 -0800 Subject: [PATCH] Set one parameter to be type path --- lib/ansible/modules/system/sysctl.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/system/sysctl.py b/lib/ansible/modules/system/sysctl.py index 5f0e12f5aa3..ae110b0653a 100644 --- a/lib/ansible/modules/system/sysctl.py +++ b/lib/ansible/modules/system/sysctl.py @@ -348,15 +348,16 @@ def main(): reload = dict(default=True, type='bool'), sysctl_set = dict(default=False, type='bool'), ignoreerrors = dict(default=False, type='bool'), - sysctl_file = dict(default='/etc/sysctl.conf') + sysctl_file = dict(default='/etc/sysctl.conf', type='path') ), supports_check_mode=True ) - result = SysctlModule(module) + result = SysctlModule(module) module.exit_json(changed=result.changed) # import module snippets from ansible.module_utils.basic import * -main() +if __name__ == '__main__': + main()