mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
removed_module func: removed extra spaces from msg and docstring (#57209)
This commit is contained in:
parent
87422ea7e7
commit
86be0985ce
2 changed files with 4 additions and 2 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- removed_module - remove extra spaces from msg and docstring (https://github.com/ansible/ansible/pull/57209)
|
|
@ -7,13 +7,13 @@ import sys
|
||||||
from ansible.module_utils._text import to_native
|
from ansible.module_utils._text import to_native
|
||||||
|
|
||||||
|
|
||||||
def removed_module(removed_in, msg='This module has been removed. The module documentation for'
|
def removed_module(removed_in, msg='This module has been removed. The module documentation for'
|
||||||
' Ansible-%(version)s may contain hints for porting'):
|
' Ansible-%(version)s may contain hints for porting'):
|
||||||
"""
|
"""
|
||||||
Returns module failure along with a message about the module being removed
|
Returns module failure along with a message about the module being removed
|
||||||
|
|
||||||
:arg removed_in: The version that the module was removed in
|
:arg removed_in: The version that the module was removed in
|
||||||
:kwarg msg: Message to use in the module's failure message. The default says that the module
|
:kwarg msg: Message to use in the module's failure message. The default says that the module
|
||||||
has been removed and what version of the Ansible documentation to search for porting help.
|
has been removed and what version of the Ansible documentation to search for porting help.
|
||||||
|
|
||||||
Remove the actual code and instead have boilerplate like this::
|
Remove the actual code and instead have boilerplate like this::
|
||||||
|
|
Loading…
Add table
Reference in a new issue