From 8b76b2ff0519372d7a2866b50ebfaf3c1f42be79 Mon Sep 17 00:00:00 2001 From: Amos Benari Date: Thu, 5 Apr 2012 17:12:34 +0300 Subject: [PATCH] removed unneeded dependency, --- lib/fog/libvirt/requests/compute/list_volumes.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/fog/libvirt/requests/compute/list_volumes.rb b/lib/fog/libvirt/requests/compute/list_volumes.rb index 44a6c9205..822029fd8 100644 --- a/lib/fog/libvirt/requests/compute/list_volumes.rb +++ b/lib/fog/libvirt/requests/compute/list_volumes.rb @@ -1,6 +1,3 @@ -require 'erb' -require "rexml/document" - module Fog module Compute class Libvirt @@ -23,8 +20,7 @@ module Fog def volume_to_attributes(vol) - xml = REXML::Document.new(vol.xml_desc) - format_type = xml.root.elements['/volume/target/format'].attributes['type'] + format_type = xml_element(vol.xml_desc, "/volume/target/format", "type") return nil if format_type == "dir" {