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:
parent
7d46eb4959
commit
ac8f123900
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue