mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
Get warn option same as other args
This commit is contained in:
parent
095400c45e
commit
a6a9e2c247
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ def main():
|
||||||
args = module.params['args']
|
args = module.params['args']
|
||||||
creates = module.params['creates']
|
creates = module.params['creates']
|
||||||
removes = module.params['removes']
|
removes = module.params['removes']
|
||||||
warn = module.params.get('warn', True)
|
warn = module.params['warn']
|
||||||
|
|
||||||
if args.strip() == '':
|
if args.strip() == '':
|
||||||
module.fail_json(rc=256, msg="no command given")
|
module.fail_json(rc=256, msg="no command given")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue