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:
parent
fe0f240278
commit
8b76b2ff05
1 changed files with 1 additions and 5 deletions
|
@ -1,6 +1,3 @@
|
||||||
require 'erb'
|
|
||||||
require "rexml/document"
|
|
||||||
|
|
||||||
module Fog
|
module Fog
|
||||||
module Compute
|
module Compute
|
||||||
class Libvirt
|
class Libvirt
|
||||||
|
@ -23,8 +20,7 @@ module Fog
|
||||||
|
|
||||||
def volume_to_attributes(vol)
|
def volume_to_attributes(vol)
|
||||||
|
|
||||||
xml = REXML::Document.new(vol.xml_desc)
|
format_type = xml_element(vol.xml_desc, "/volume/target/format", "type")
|
||||||
format_type = xml.root.elements['/volume/target/format'].attributes['type']
|
|
||||||
return nil if format_type == "dir"
|
return nil if format_type == "dir"
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue