diff options
author | Henk Wiedig <henk@wiedig.de> | 2015-02-10 05:18:37 -0500 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2015-02-17 14:30:42 -0600 |
commit | 55a2d370b0236415b438f0da7cee74afe4b0e7de (patch) | |
tree | 65d6f0d51d65d57b05bddffc4893746888f86235 | |
parent | 8be771606430caf392db3a6215545bec95c80457 (diff) | |
download | ansible-55a2d370b0236415b438f0da7cee74afe4b0e7de.tar.gz |
make su promt AIX compatible
$ su suuser date
suusers's Password:
-rw-r--r-- | lib/ansible/utils/su_prompts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/utils/su_prompts.py b/lib/ansible/utils/su_prompts.py index f6641a4321..04e98e1c45 100644 --- a/lib/ansible/utils/su_prompts.py +++ b/lib/ansible/utils/su_prompts.py @@ -53,7 +53,7 @@ SU_PROMPT_LOCALIZATIONS = [ '密碼', ] -SU_PROMPT_LOCALIZATIONS_RE = re.compile("|".join([x + ' ?: ?' for x in SU_PROMPT_LOCALIZATIONS]), flags=re.IGNORECASE) +SU_PROMPT_LOCALIZATIONS_RE = re.compile("|".join(['(\w+\'s )?' + x + ' ?: ?' for x in SU_PROMPT_LOCALIZATIONS]), flags=re.IGNORECASE) def check_su_prompt(data): return bool(SU_PROMPT_LOCALIZATIONS_RE.match(data)) |