Making the Fedora guest detection search string generic

Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
This commit is contained in:
Lalatendu Mohanty 2015-11-24 01:36:17 +05:30
parent d5fa7416ff
commit 7bb57c6f83
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ module VagrantPlugins
module GuestFedora
class Guest < Vagrant.plugin("2", :guest)
def detect?(machine)
machine.communicate.test("grep 'Fedora release 1[6789]\\|Fedora release 2[0-9]' /etc/redhat-release")
machine.communicate.test("grep 'Fedora release' /etc/redhat-release")
end
end
end