Skip to content

Commit

Permalink
Merge pull request #397 from test-kitchen/amazonlinux
Browse files Browse the repository at this point in the history
Support using bento/amazonlinux-2 when specifying just amazonlinux-2 platform
  • Loading branch information
tas50 authored Mar 14, 2019
2 parents ce7b229 + a112d2b commit 2a9e25d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kitchen/driver/vagrant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class << self
# box
# @api private
def bento_box?(name)
name =~ /^(centos|debian|fedora|freebsd|opensuse|ubuntu|oracle|hardenedbsd)-/
name =~ /^(centos|debian|fedora|freebsd|opensuse|ubuntu|oracle|hardenedbsd|amazonlinux)-/
end

# Returns whether or not the we expect the box to work with shared folders
Expand All @@ -247,7 +247,7 @@ def bento_box?(name)
# @api private
def safe_share?(box)
return false if config[:provider] =~ /(hyperv|libvirt)/
box =~ /^bento\/(centos|debian|fedora|opensuse|ubuntu|oracle)-/
box =~ /^bento\/(centos|debian|fedora|opensuse|ubuntu|oracle|amazonlinux)-/
end

# Return true if we found the criteria to enable the cache_directory
Expand Down

0 comments on commit 2a9e25d

Please sign in to comment.