Get warn option same as other args

This commit is contained in:
Ricky Cook 2014-10-08 22:30:20 +11:00
parent 25789b3f47
commit b195b5a6bb

View file

@ -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")