mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #2004 from rvrignaud/flavors
Fix Fog::Compute::Google::Flavor all method
This commit is contained in:
commit
fb1d8b777c
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,8 @@ module Fog
|
||||||
model Fog::Compute::Google::Flavor
|
model Fog::Compute::Google::Flavor
|
||||||
|
|
||||||
def all
|
def all
|
||||||
data = connection.list_machine_types.body["items"]
|
zone = service.list_zones.body['items'].first
|
||||||
|
data = connection.list_machine_types(zone['name']).body["items"]
|
||||||
load(data)
|
load(data)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue