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:
parent
89e951177d
commit
5d2f7ba341
1 changed files with 1 additions and 1 deletions
|
@ -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 = {})
|
||||
|
|
Loading…
Reference in a new issue