Skip to content

Commit

Permalink
Fix whitespace handling for vm_flags
Browse files Browse the repository at this point in the history
  • Loading branch information
lategoodbye authored and ngiger committed Aug 3, 2014
1 parent dedf0c3 commit 3af83c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/veewee/provider/virtualbox/box/helper/create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,15 @@ def create_vm
vm_flag_value=definition.instance_variable_get("@#{vm_flag}")
ui.info "Setting VM Flag #{vm_flag} to #{vm_flag_value}"
ui.warn "Used of #{vm_flag} is deprecated - specify your options in the definition file as \n :virtualbox => { :vm_options => [\"#{vm_flag}\" => \"#{vm_flag_value}\"]}"
command="#{@vboxcmd} modifyvm #{name} --#{vm_flag.to_s} #{vm_flag_value}"
command="#{@vboxcmd} modifyvm \"#{name}\" --#{vm_flag.to_s} #{vm_flag_value}"
shell_exec("#{command}")
end
end

unless definition.virtualbox[:vm_options].nil? || definition.virtualbox[:vm_options][0].nil?
definition.virtualbox[:vm_options][0].each do |vm_flag,vm_flag_value|
ui.info "Setting VM Flag #{vm_flag} to #{vm_flag_value}"
command="#{@vboxcmd} modifyvm #{name} --#{vm_flag.to_s} #{vm_flag_value}"
command="#{@vboxcmd} modifyvm \"#{name}\" --#{vm_flag.to_s} #{vm_flag_value}"
shell_exec("#{command}")
end
end
Expand Down

0 comments on commit 3af83c7

Please sign in to comment.