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

[opennebula] fixed networks.get_by_name

This commit is contained in:
Achim Ledermüller 2014-06-18 10:18:53 +02:00
parent 9fcb2a7894
commit 68b8d42914

View file

@ -20,7 +20,7 @@ module Fog
def get_by_name(name)
data = service.list_networks({:name => name})
load(data)
load(data).first
rescue Fog::Compute::OpenNebula::NotFound
nil
end