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:
parent
baffd91136
commit
a130429a75
1 changed files with 2 additions and 1 deletions
|
@ -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" => [
|
||||
|
|
Loading…
Add table
Reference in a new issue