mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-22 00:49:09 -07:00
Add option to ignore, warn, or error when a module parameter is converted to a string (#51404)
* Add new module property to Windows modules * Add brief pause to file tests to ensure the stat times are not equal, which was happening sometimes. * Raise TypeError on error rather than fail_json() * Rework error message to be less verbose * Add porting guide entry
This commit is contained in:
parent
1f06b3ca7d
commit
f52a088862
7 changed files with 49 additions and 8 deletions
|
@ -683,6 +683,9 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
|||
# let module know about filesystems that selinux treats specially
|
||||
module_args['_ansible_selinux_special_fs'] = C.DEFAULT_SELINUX_SPECIAL_FS
|
||||
|
||||
# what to do when parameter values are converted to strings
|
||||
module_args['_ansible_string_conversion_action'] = C.STRING_CONVERSION_ACTION
|
||||
|
||||
# give the module the socket for persistent connections
|
||||
module_args['_ansible_socket'] = getattr(self._connection, 'socket_path')
|
||||
if not module_args['_ansible_socket']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue