mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
feature #476: make hypervisor available to the network hooks
This commit is contained in:
parent
d8a3628aef
commit
ab76c1996d
@ -79,8 +79,8 @@ class OpenNebulaNetwork
|
||||
attr_reader :hypervisor, :vm
|
||||
|
||||
def initialize(vm_tpl, hypervisor=nil)
|
||||
hypervisor = detect_hypervisor if !hypervisor
|
||||
@vm = VM.new(REXML::Document.new(vm_tpl).root, hypervisor)
|
||||
@hypervisor = detect_hypervisor if !hypervisor
|
||||
@vm = VM.new(REXML::Document.new(vm_tpl).root, @hypervisor)
|
||||
end
|
||||
|
||||
def filter(*filter)
|
||||
|
Loading…
x
Reference in New Issue
Block a user