This is an automated email from the ASF dual-hosted git repository.

jhg03a pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 3ea54b2  terminate disk check regex with a digit (#3699)
3ea54b2 is described below

commit 3ea54b2da1d1609c28c80871b6dff71888dbf673
Author: Jason Tucker <[email protected]>
AuthorDate: Fri Jul 5 17:42:15 2019 -0400

    terminate disk check regex with a digit (#3699)
    
    Fixes #3698
---
 traffic_ops/bin/traffic_ops_ort.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/traffic_ops/bin/traffic_ops_ort.pl 
b/traffic_ops/bin/traffic_ops_ort.pl
index 47a2a1f..fdccce0 100755
--- a/traffic_ops/bin/traffic_ops_ort.pl
+++ b/traffic_ops/bin/traffic_ops_ort.pl
@@ -2945,7 +2945,7 @@ sub adv_processing_udev {
                                }
                                ( my @df_lines ) = split( /\n/, `/bin/df` );
                                foreach my $l (@df_lines) {
-                                       if ( $l =~ m/$dev_path/ ) {
+                                       if ( $l =~ m/$dev_path\d/ ) {
                                                ( $log_level >> $FATAL ) && 
print "FATAL Device /dev/$dev has an active partition and a file system!!\n";
                                        }
                                }

Reply via email to