mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[Libvirt] ensure Fog volumes do not raise on LVM based volumes
This commit is contained in:
parent
65dd8b4f56
commit
fe0f3dd3c9
1 changed files with 1 additions and 1 deletions
|
@ -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