From 0a6dd68ec63e23cd88be9024883580cdcc60b599 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Fri, 8 May 2015 17:52:41 +0200 Subject: [PATCH] feature #3532: comment code to import disks and interfaces this code was executed but not used when generating import template in KVM probes --- src/vmm_mad/remotes/poll_xen_kvm.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vmm_mad/remotes/poll_xen_kvm.rb b/src/vmm_mad/remotes/poll_xen_kvm.rb index 4030391c77..13d699f9f7 100755 --- a/src/vmm_mad/remotes/poll_xen_kvm.rb +++ b/src/vmm_mad/remotes/poll_xen_kvm.rb @@ -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']")