Fix issue that could cause config loader to fail if no block given to a subvm
This commit is contained in:
parent
ad7f4c79ad
commit
8f522225a1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue