Skip to content

Commit 570ea7d

Browse files
Merge pull request #7485 from openshift-cherrypick-robot/cherry-pick-7484-to-master
Automatic merge from submit-queue. [master] Changing python regex method from match to search This is an automated cherry-pick of #7484 /assign sdodson
2 parents c5b38b2 + 237b1e3 commit 570ea7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/openshift_logging/library/logging_patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def account_for_whitelist(current_file_contents, new_file_contents, white_list=N
7777

7878
for line in white_list:
7979
regex_line = r".*" + re.escape(line) + r":.*\n"
80-
new_file_line = re.match(regex_line, new_file_contents)
80+
new_file_line = re.search(regex_line, new_file_contents)
8181
if new_file_line:
8282
current_file_contents = re.sub(regex_line, new_file_line.group(0), current_file_contents)
8383
else:

0 commit comments

Comments
 (0)