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

[google|compute] disks.all shouldn't return nil

* disk.all should return empty Fog::Compute::Google::Disks
This commit is contained in:
Romain Vrignaud 2013-08-05 11:10:45 +02:00
parent 7d46eb4959
commit ac8f123900

View file

@ -10,7 +10,7 @@ module Fog
model Fog::Compute::Google::Disk
def all(zone)
data = service.list_disks(zone).body["items"]
data = service.list_disks(zone).body["items"] || []
load(data)
end