1
0
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:
Jaime Melis 2011-06-22 16:42:08 +02:00
parent d8a3628aef
commit ab76c1996d

View File

@ -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)