From 147ca90b270e84882bbe1e37d0caf4e03cc91b6d Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Fri, 5 Jun 2026 00:17:25 -0700 Subject: [PATCH] Fix deprecation message typo for get_platform in basic.py (#87065) --- changelogs/fragments/get-platform-deprecation-typo.yml | 2 ++ lib/ansible/module_utils/basic.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/get-platform-deprecation-typo.yml 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.", )