From 40543aa8db86ba04417f355cd8053d95320bc2a0 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 5 Apr 2021 01:22:26 -0400 Subject: [PATCH] fix su localization option [2.10] (#73878) * fix su localization optoin fixes #73837 (cherry picked from commit 37cb55018516c3efacab37e1f65da1e8bb7550e5) * Update su_fix.yml Co-authored-by: Rick Elrod --- 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..3cc7082c860 --- /dev/null +++ b/changelogs/fragments/su_fix.yml @@ -0,0 +1,2 @@ +bugfixes: + - su become plugin - ensure correct type for localization option (https://github.com/ansible/ansible/issues/73837). diff --git a/lib/ansible/plugins/become/su.py b/lib/ansible/plugins/become/su.py index e200165567e..b1c4cdd26f7 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