1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

removed unneeded dependency,

This commit is contained in:
Amos Benari 2012-04-05 17:12:34 +03:00
parent fe0f240278
commit 8b76b2ff05

View file

@ -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"
{