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