mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 20:37:39 -02:30
deal with case that can cause memory errors
This commit is contained in:
@@ -58,4 +58,6 @@ class PlainTextCleaner(object):
|
||||
|
||||
@staticmethod
|
||||
def remove_sensitive(cleartext, sensitive):
|
||||
if sensitive == '':
|
||||
return cleartext
|
||||
return re.sub(r'%s' % re.escape(sensitive), '$encrypted$', cleartext)
|
||||
|
||||
Reference in New Issue
Block a user