1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

feature #476: Bug initializing OpenNebulaNetwork class

This commit is contained in:
Ruben S. Montero 2011-06-23 16:25:31 +02:00
parent ab76c1996d
commit e4d72a3c76

View File

@ -79,7 +79,11 @@ class OpenNebulaNetwork
attr_reader :hypervisor, :vm
def initialize(vm_tpl, hypervisor=nil)
@hypervisor = detect_hypervisor if !hypervisor
if !hypervisor
@hypervisor = detect_hypervisor
else
@hypervisor = hypervisor
end
@vm = VM.new(REXML::Document.new(vm_tpl).root, @hypervisor)
end