# File lib/fog/libvirt/models/compute/volumes.rb, line 57 def get_by_key(key) connection.raw.list_storage_pools.each do |poolname| pool=connection.raw.lookup_storage_pool_by_name(poolname) volume=pool.lookup_volume_by_key(key) unless volume.nil? return volume end end return nil end