From 37cb55018516c3efacab37e1f65da1e8bb7550e5 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 9 Mar 2021 12:59:16 -0500 Subject: [PATCH] fix su localization optoin fixes #73837 --- changelogs/fragments/su_fix.yml | 2 ++ lib/ansible/plugins/become/su.py | 1 + 2 files changed, 3 insertions(+) create mode 100644 changelogs/fragments/su_fix.yml diff --git a/changelogs/fragments/su_fix.yml b/changelogs/fragments/su_fix.yml new file mode 100644 index 00000000000..f03ba0343da --- /dev/null +++ b/changelogs/fragments/su_fix.yml @@ -0,0 +1,2 @@ +bugfixes: + - su become plugin, ensure correct type for localization option. diff --git a/lib/ansible/plugins/become/su.py b/lib/ansible/plugins/become/su.py index 3d6a07b5b00..77e997648ab 100644 --- a/lib/ansible/plugins/become/su.py +++ b/lib/ansible/plugins/become/su.py @@ -72,6 +72,7 @@ DOCUMENTATION = """ - List of localized strings to match for prompt detection - If empty we'll use the built in one default: [] + type: list ini: - section: su_become_plugin key: localized_prompts