summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <bcoca@ansible.com>2015-02-10 08:58:08 -0500
committerBrian Coca <bcoca@ansible.com>2015-02-10 08:58:08 -0500
commit9fa221ac00f305ed4ed4f7c2a15171ee284a2f28 (patch)
tree3f6f1d8d5099147f7a5b70cf0ff9089d1745dd53
parent7c86db31876b9299016e139dd98dc524139e3e25 (diff)
parent0a902a5afd43fe817320bd1e400828abcd1faa83 (diff)
downloadansible-9fa221ac00f305ed4ed4f7c2a15171ee284a2f28.tar.gz
Merge pull request #10195 from henkwiedig/aix_su_promts
make su promt AIX compatible i tested that it does not break existing on linux, I'm going to take your word on it working on AIX
-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))