rob05c commented on a change in pull request #4343: traffic_ops_ort: fix for 
syncds having too many header rewrite false …
URL: https://github.com/apache/trafficcontrol/pull/4343#discussion_r372534463
 
 

 ##########
 File path: traffic_ops/ort/traffic_ops_ort.pl
 ##########
 @@ -2652,6 +2658,23 @@ sub scrape_unencode_text {
        return \@lines;
 }
 
+sub scrape_canned_comments {
+       my $linesin = $_[0];
+
+       my @linesout;
+
+       foreach my $line (@$linesin) {
+               if ( $line =~ m/^\#/ ) {
+                       if ( $line =~ m/DO NOT EDIT - Generated for / || $line 
=~ m/$header_comment/ || $line =~ m/TRAFFIC OPS NOTE\:/ || $line =~ 
m/^##OVERRID.*##/ ) {
 
 Review comment:
   Question: why don't we skip all comments?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to