diff --git a/lib/fog/libvirt/requests/compute/create_volume.rb b/lib/fog/libvirt/requests/compute/create_volume.rb index 269898406..0623ec369 100644 --- a/lib/fog/libvirt/requests/compute/create_volume.rb +++ b/lib/fog/libvirt/requests/compute/create_volume.rb @@ -8,7 +8,7 @@ module Fog end class Mock - def create_volume(xml) + def create_volume(pool_name, xml) end end diff --git a/lib/fog/libvirt/requests/compute/list_volumes.rb b/lib/fog/libvirt/requests/compute/list_volumes.rb index 822029fd8..af8723e06 100644 --- a/lib/fog/libvirt/requests/compute/list_volumes.rb +++ b/lib/fog/libvirt/requests/compute/list_volumes.rb @@ -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" {