From eaa4e11c628de1260671dbf3c17df785a77c67c8 Mon Sep 17 00:00:00 2001 From: Eugene Zamriy Date: Sun, 12 Jun 2016 16:51:55 +0300 Subject: [PATCH] Add CloudLinux 7 to RHEL 7 flavors. --- plugins/guests/redhat/cap/flavor.rb | 2 +- test/unit/plugins/guests/redhat/cap/flavor_test.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/guests/redhat/cap/flavor.rb b/plugins/guests/redhat/cap/flavor.rb index 8bdda2629..72e16f8da 100644 --- a/plugins/guests/redhat/cap/flavor.rb +++ b/plugins/guests/redhat/cap/flavor.rb @@ -10,7 +10,7 @@ module VagrantPlugins end # Detect various flavors we care about - if output =~ /(CentOS|Red Hat Enterprise|Scientific) Linux( .+)? release 7/i + if output =~ /(CentOS|Red Hat Enterprise|Scientific|Cloud)\s*Linux( .+)? release 7/i return :rhel_7 else return :rhel diff --git a/test/unit/plugins/guests/redhat/cap/flavor_test.rb b/test/unit/plugins/guests/redhat/cap/flavor_test.rb index 636b079cb..c711495fa 100644 --- a/test/unit/plugins/guests/redhat/cap/flavor_test.rb +++ b/test/unit/plugins/guests/redhat/cap/flavor_test.rb @@ -25,6 +25,7 @@ describe "VagrantPlugins::GuestRedHat::Cap::Flavor" do "CentOS Linux 2.4 release 7" => :rhel_7, "Red Hat Enterprise Linux release 7" => :rhel_7, "Scientific Linux release 7" => :rhel_7, + "CloudLinux release 7.2 (Valeri Kubasov)" => :rhel_7, "CentOS" => :rhel, "RHEL 6" => :rhel,