From 08f8fe8004e993bfa268ff9a879c1500cef08cf7 Mon Sep 17 00:00:00 2001 From: Teddy Caddy Date: Tue, 2 Sep 2014 20:33:49 -0400 Subject: [PATCH] Update regexp to match for CentOS 7.0.1406 --- tasks/lib/distros.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/lib/distros.rb b/tasks/lib/distros.rb index 2fa43a88..a188c495 100644 --- a/tasks/lib/distros.rb +++ b/tasks/lib/distros.rb @@ -47,7 +47,7 @@ def detect_distro # CentOS # TODO: Do not piggyback the :fedora version if File.exist? '/etc/redhat-release' - match = File.new('/etc/redhat-release').readline.match(/CentOS release (\S+)/) + match = File.new('/etc/redhat-release').readline.match(/CentOS.* release (\S+)/) if match release = match[1] return [:fedora, release]