From b195b5a6bb65acfbfddc61885df1fe9d721c34a3 Mon Sep 17 00:00:00 2001 From: Ricky Cook Date: Wed, 8 Oct 2014 22:30:20 +1100 Subject: [PATCH] Get warn option same as other args --- commands/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/command.py b/commands/command.py index 75927a5ba0b..44c95a3d5bd 100644 --- a/commands/command.py +++ b/commands/command.py @@ -163,7 +163,7 @@ def main(): args = module.params['args'] creates = module.params['creates'] removes = module.params['removes'] - warn = module.params.get('warn', True) + warn = module.params['warn'] if args.strip() == '': module.fail_json(rc=256, msg="no command given")