From 7c6d22efbaf51fec969bcf465eb8aa91e6749d0a Mon Sep 17 00:00:00 2001 From: lospatchos <44246129+lospatchos@users.noreply.github.com> Date: Fri, 29 May 2020 00:09:11 +0200 Subject: [PATCH] Update sesu.py: use defined prompt (#227) * Update sesu.py: use defined prompt * add changelog Co-authored-by: Alexandros Zachos --- changelogs/fragments/227-sesu-use-defined-prompt.yaml | 2 ++ plugins/become/sesu.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/227-sesu-use-defined-prompt.yaml diff --git a/changelogs/fragments/227-sesu-use-defined-prompt.yaml b/changelogs/fragments/227-sesu-use-defined-prompt.yaml new file mode 100644 index 0000000000..8901852380 --- /dev/null +++ b/changelogs/fragments/227-sesu-use-defined-prompt.yaml @@ -0,0 +1,2 @@ +bugfixes: + - sesu - make use of the prompt specified in the code diff --git a/plugins/become/sesu.py b/plugins/become/sesu.py index 8b56f025f4..b56e6ee214 100644 --- a/plugins/become/sesu.py +++ b/plugins/become/sesu.py @@ -75,7 +75,7 @@ class BecomeModule(BecomeBase): name = 'community.general.sesu' - _prompt = 'Please enter your password:' + prompt = 'Please enter your password:' fail = missing = ('Sorry, try again with sesu.',) def build_become_command(self, cmd, shell):