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
|
||||
|
||||
class Mock
|
||||
def create_volume(xml)
|
||||
def create_volume(pool_name, xml)
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -20,7 +20,7 @@ module Fog
|
|||
|
||||
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"
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue