From 86be0985ceb500287fb685d8d4b33c7afa860ced Mon Sep 17 00:00:00 2001 From: Andrey Klychkov Date: Mon, 3 Jun 2019 17:00:19 +0300 Subject: [PATCH] removed_module func: removed extra spaces from msg and docstring (#57209) --- .../fragments/57209-removed_module_remove_extra_spaces.yml | 2 ++ lib/ansible/module_utils/common/removed.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/57209-removed_module_remove_extra_spaces.yml diff --git a/changelogs/fragments/57209-removed_module_remove_extra_spaces.yml b/changelogs/fragments/57209-removed_module_remove_extra_spaces.yml new file mode 100644 index 0000000000..426347b0e1 --- /dev/null +++ b/changelogs/fragments/57209-removed_module_remove_extra_spaces.yml @@ -0,0 +1,2 @@ +bugfixes: + - removed_module - remove extra spaces from msg and docstring (https://github.com/ansible/ansible/pull/57209) diff --git a/lib/ansible/module_utils/common/removed.py b/lib/ansible/module_utils/common/removed.py index 43c7ffaac4..826d0dfa1c 100644 --- a/lib/ansible/module_utils/common/removed.py +++ b/lib/ansible/module_utils/common/removed.py @@ -7,13 +7,13 @@ import sys 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'): """ Returns module failure along with a message about the module being removed :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. Remove the actual code and instead have boilerplate like this::