mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
fix command warnings, add action warnings (#34060)
* fix command warnings, add action warnings
This commit is contained in:
parent
94d952f94b
commit
a0c171ce1b
5 changed files with 24 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue