sound_type set to nil if UNSET_VALUE.

This commit is contained in:
Dmitry Galkin 2017-01-07 14:01:00 +01:00
parent 2f091b1cdc
commit 1248dc43e9
2 changed files with 3 additions and 2 deletions

View File

@ -586,7 +586,7 @@ module VagrantPlugins
@graphics_ip = '127.0.0.1' if @graphics_ip == UNSET_VALUE
@video_type = 'cirrus' if @video_type == UNSET_VALUE
@video_vram = 9216 if @video_vram == UNSET_VALUE
@sound_type = 'ich6' if @sound_type == UNSET_VALUE
@sound_type = nil if @sound_type == UNSET_VALUE
@keymap = 'en-us' if @keymap == UNSET_VALUE
@kvm_hidden = false if @kvm_hidden == UNSET_VALUE
@tpm_model = 'tpm-tis' if @tpm_model == UNSET_VALUE

View File

@ -131,7 +131,8 @@
<% @inputs.each do |input| %>
<input type='<%= input[:type] %>' bus='<%= input[:bus] %>'/>
<% end %>
<% if @sound_type != 'none' %>
<% if !@sound_type.nil? %>
<%# Sound device-%>
<sound model='<%= @sound_type %>'>
</sound>