mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
feature #3532: comment code to import disks and interfaces
this code was executed but not used when generating import template in KVM probes
This commit is contained in:
parent
dfcd8c449f
commit
0a6dd68ec6
@ -351,6 +351,7 @@ module KVM
|
||||
memory = REXML::XPath.first(doc, '/domain/memory').text.to_i / 1024
|
||||
arch = REXML::XPath.first(doc, '/domain/os/type').attributes['arch']
|
||||
|
||||
=begin
|
||||
disks = []
|
||||
REXML::XPath.each(doc, '/domain/devices/disk') do |d|
|
||||
type = REXML::XPath.first(d, '//disk').attributes['type']
|
||||
@ -403,7 +404,7 @@ module KVM
|
||||
interfaces_txt << " MODEL=\"#{interface[:model]}\""
|
||||
interfaces_txt << "]\n"
|
||||
end
|
||||
|
||||
=end
|
||||
|
||||
spice = REXML::XPath.first(doc,
|
||||
"/domain/devices/graphics[@type='spice']")
|
||||
|
Loading…
x
Reference in New Issue
Block a user