From 41b7badb137887c6211622e623f75b65962350d6 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Tue, 11 Mar 2014 16:07:08 -0400 Subject: [PATCH] Fix snippet imports and version_added in ufw module --- library/system/ufw | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/system/ufw b/library/system/ufw index 5ac20978ec..caae2ad467 100644 --- a/library/system/ufw +++ b/library/system/ufw @@ -26,7 +26,7 @@ module: ufw short_description: Manage firewall with UFW description: - Manage firewall with UFW. -version_added: 1.5 +version_added: 1.6 author: Aleksey Ovcharenko, Jarno Keskikangas notes: - See C(man ufw) for more examples. @@ -169,7 +169,7 @@ def main(): insert = dict(default=None), rule = dict(default=None, choices=['allow', 'deny', 'reject', 'limit']), interface = dict(default=None, aliases=['if']), - log = dict(default=False, choices=BOOLEANS), + log = dict(default=False, type='bool'), from_ip = dict(default='any', aliases=['src', 'from']), from_port = dict(default=None), to_ip = dict(default='any', aliases=['dest', 'to']), @@ -250,7 +250,7 @@ def main(): return module.exit_json(changed=changed, commands=cmds, msg=post_state.rstrip()) -# include magic from lib/ansible/module_common.py -#<> +# import module snippets +from ansible.module_utils.basic import * main()