fix command warnings, add action warnings (#34060)

* fix command warnings, add action warnings
This commit is contained in:
Brian Coca 2017-12-21 11:35:32 -05:00 committed by Toshio Kuratomi
parent 94d952f94b
commit a0c171ce1b
5 changed files with 24 additions and 4 deletions

View file

@ -165,7 +165,7 @@ def main():
executable=dict(),
creates=dict(type='path'),
removes=dict(type='path'),
warn=dict(type='bool', default=True),
warn=dict(type='bool'),
stdin=dict(required=False),
)
)
@ -179,6 +179,9 @@ def main():
warn = module.params['warn']
stdin = module.params['stdin']
if warn is None:
warn = module._command_warn
if not shell and executable:
module.warn("As of Ansible 2.4, the parameter 'executable' is no longer supported with the 'command' module. Not using '%s'." % executable)
executable = None