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

[google|compute] Make get_region look the same for real and mock

This commit is contained in:
Nat Welch 2014-09-17 10:16:11 -07:00
parent baffd91136
commit a130429a75

View file

@ -2,7 +2,8 @@ module Fog
module Compute
class Google
class Mock
def get_region(region_name)
def get_region(identity)
region_name = identity.split('/')[-1]
region = self.data[:regions][region_name] || {
"error" => {
"errors" => [