Modify the matching pattern of guest os for amazon linux

This commit is contained in:
winky 2017-12-27 13:57:47 +09:00
parent eae5230b5d
commit e99c47907f
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ module VagrantPlugins
module GuestAmazon
class Guest < Vagrant.plugin("2", :guest)
def detect?(machine)
machine.communicate.test("grep 'Amazon Linux AMI' /etc/os-release")
machine.communicate.test("grep 'Amazon Linux' /etc/os-release")
end
end
end