trafficcontrol-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [1/4] incubator-trafficcontrol git commit: Don't capture more than one match
Date Fri, 07 Jul 2017 19:40:40 GMT
Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master 02f1bef5d -> fdc8fc35e


Don't capture more than one match

Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/f5bb7be8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/f5bb7be8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/f5bb7be8

Branch: refs/heads/master
Commit: f5bb7be84d09d951d5190d32dfcbdf3968ae01f8
Parents: 374b986
Author: Derek Gelinas <derek_gelinas@cable.comcast.com>
Authored: Fri Jul 7 10:38:37 2017 -0400
Committer: Jeff Elsloo <jeffrey_elsloo@cable.comcast.com>
Committed: Fri Jul 7 13:40:04 2017 -0600

----------------------------------------------------------------------
 traffic_ops/bin/traffic_ops_ort.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/f5bb7be8/traffic_ops/bin/traffic_ops_ort.pl
----------------------------------------------------------------------
diff --git a/traffic_ops/bin/traffic_ops_ort.pl b/traffic_ops/bin/traffic_ops_ort.pl
index 1c9df70..a88ed68 100755
--- a/traffic_ops/bin/traffic_ops_ort.pl
+++ b/traffic_ops/bin/traffic_ops_ort.pl
@@ -302,7 +302,7 @@ sub revalidate_while_sleeping {
 
 sub os_version {
   my $release = "UNKNOWN";
-  if (`uname -r` =~ m/.+(el\d)(\.\w+)*\.x86_64/)  {
+  if (`uname -r` =~ m/.+(el\d)(?:\.\w+)*\.x86_64/)  {
     $release = uc $1;
   }
   exists $supported_el_release{$release} ? return $release


Mime
View raw message