updated get_vmx to handle the structure passed by the control shells. For instance: @lab['metasploitable'] = {"vmx" => "msf_lab/user/Metasploitable/Metasploitable.vmx", "user" => "user", "pass" => "user", "os" => "linux" }

git-svn-id: file:///home/svn/framework3/trunk@9737 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Jonathan Cran 2010-07-08 19:13:20 +00:00
parent a4c6280ae0
commit 978c0f30e3
1 changed files with 1 additions and 1 deletions

View File

@ -422,7 +422,7 @@ class VmwareLabController < VmwareController
def get_vmx(vmid) def get_vmx(vmid)
if @lab[vmid] if @lab[vmid]
@vmbase.to_s + @lab[vmid].to_s ## handle linux @vmbase.to_s + @lab[vmid]["vmx"].to_s ## handle linux
else else
raise "VM #{vmid} does not exist!" raise "VM #{vmid} does not exist!"
end end