summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenk Wiedig <henk@wiedig.de>2015-02-10 05:18:37 -0500
committerJames Cammarata <jimi@sngx.net>2015-02-17 14:30:42 -0600
commit55a2d370b0236415b438f0da7cee74afe4b0e7de (patch)
tree65d6f0d51d65d57b05bddffc4893746888f86235
parent8be771606430caf392db3a6215545bec95c80457 (diff)
downloadansible-55a2d370b0236415b438f0da7cee74afe4b0e7de.tar.gz
make su promt AIX compatible
$ su suuser date suusers's Password:
-rw-r--r--lib/ansible/utils/su_prompts.py2
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))