mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
commit
2f226adcba
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ module Fog
|
||||||
end
|
end
|
||||||
|
|
||||||
class Mock
|
class Mock
|
||||||
def create_volume(xml)
|
def create_volume(pool_name, xml)
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -20,7 +20,7 @@ module Fog
|
||||||
|
|
||||||
def volume_to_attributes(vol)
|
def volume_to_attributes(vol)
|
||||||
|
|
||||||
format_type = xml_element(vol.xml_desc, "/volume/target/format", "type")
|
format_type = xml_element(vol.xml_desc, "/volume/target/format", "type") rescue nil # not all volumes have types, e.g. LVM
|
||||||
return nil if format_type == "dir"
|
return nil if format_type == "dir"
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue