diff --git a/changelogs/fragments/get-platform-deprecation-typo.yml b/changelogs/fragments/get-platform-deprecation-typo.yml new file mode 100644 index 00000000000..0dc1b0f335e --- /dev/null +++ b/changelogs/fragments/get-platform-deprecation-typo.yml @@ -0,0 +1,2 @@ +bugfixes: + - basic.py - Fix typo in deprecation message for use of the ``get_platform`` function. diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index f852fb5c739..3598c70f5d1 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -220,7 +220,7 @@ def get_platform(): the result of calling :py:func:`platform.system`. """ deprecate( - msg="The `get_platfrom()` function from `ansible.module_utils.basic` is deprecated.", + msg="The `get_platform()` function from `ansible.module_utils.basic` is deprecated.", version="2.24", help_text="Use `platform.system()` from the Python standard library instead.", )