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-b9f4589650daunstable
parent
a4c6280ae0
commit
978c0f30e3
|
@ -422,7 +422,7 @@ class VmwareLabController < VmwareController
|
|||
|
||||
def get_vmx(vmid)
|
||||
if @lab[vmid]
|
||||
@vmbase.to_s + @lab[vmid].to_s ## handle linux
|
||||
@vmbase.to_s + @lab[vmid]["vmx"].to_s ## handle linux
|
||||
else
|
||||
raise "VM #{vmid} does not exist!"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue