Pass guest platform through mapping

This commit is contained in:
Jeff Bonhag 2020-07-30 16:30:13 -04:00
parent 57a0703663
commit 0547c2e36d
No known key found for this signature in database
GPG Key ID: 32966F3FB5AC1129

View File

@ -86,6 +86,7 @@ Vagrant.configure(2) do |global_config|
guest_boxes.each_with_index do |box_info, idx|
guest_box, box_version = box_info
guest_platform = guest_box.split('/').last.sub(/[^a-z]+$/, '')
guest_platform = PLATFORM_SCRIPT_MAPPING[guest_platform]
spec_cmd_args = ENV["VAGRANT_SPEC_ARGS"]
if idx != 0
spec_cmd_args = "#{spec_cmd_args} --without-component cli/*".strip