diff options
author | Brian Coca <bcoca@ansible.com> | 2015-02-10 08:58:08 -0500 |
---|---|---|
committer | Brian Coca <bcoca@ansible.com> | 2015-02-10 08:58:08 -0500 |
commit | 9fa221ac00f305ed4ed4f7c2a15171ee284a2f28 (patch) | |
tree | 3f6f1d8d5099147f7a5b70cf0ff9089d1745dd53 | |
parent | 7c86db31876b9299016e139dd98dc524139e3e25 (diff) | |
parent | 0a902a5afd43fe817320bd1e400828abcd1faa83 (diff) | |
download | ansible-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.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)) |