1
0
Fork 0
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:
Ohad Levy 2012-06-27 09:40:38 +03:00 committed by Ohad Levy
parent 65dd8b4f56
commit fe0f3dd3c9

View file

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