Fix issue that could cause config loader to fail if no block given to a subvm

This commit is contained in:
Mitchell Hashimoto 2011-12-26 18:07:39 -08:00
parent ad7f4c79ad
commit 8f522225a1
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ do before is certainly still possible with `VBoxManage` as well.
# Add the SubVM to the hash of defined VMs
defined_vms[name] ||= SubVM.new
defined_vms[name].options.merge!(options)
defined_vms[name].push_proc(&block)
defined_vms[name].push_proc(&block) if block
end
def validate(env, errors)