mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add a new password pattern to the run_command filter
This commit is contained in:
parent
aaa74352a7
commit
b4d130d086
1 changed files with 1 additions and 0 deletions
|
@ -1137,6 +1137,7 @@ class AnsibleModule(object):
|
|||
# that are not balanced
|
||||
# source: http://blog.stevenlevithan.com/archives/match-quoted-string
|
||||
r'([-]{0,2}pass[-]?(?:word|wd)?[=\s]?)((?:["\'])?(?:[^\s])*(?:\1)?)',
|
||||
r'^(?P<before>.*:)(?P<password>.*)(?P<after>\@.*)$',
|
||||
# TODO: add more regex checks here
|
||||
]
|
||||
for re_str in clean_re_strings:
|
||||
|
|
Loading…
Reference in a new issue