1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

libvirt: servers return nil, not an empty array...

This commit is contained in:
Ohad Levy 2012-01-25 16:16:39 +02:00 committed by Ohad Levy
parent 89e951177d
commit 5d2f7ba341

View file

@ -45,7 +45,7 @@ module Fog
def get(uuid)
vm = all(:uuid => uuid)
vm.empty? ? nil : vm.first
vm.first if vm
end
def bootstrap(new_attributes = {})