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:
parent
ab76c1996d
commit
e4d72a3c76
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user