mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[google|compute] Fix operations scopes for compute engine
This commit is contained in:
parent
6105888499
commit
44afabb08a
2 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ module Fog
|
|||
}
|
||||
|
||||
data = service.insert_forwarding_rule(name, region, options).body
|
||||
operation = Fog::Compute::Google::Operations.new(:service => service).get(data['name'], data['zone'])
|
||||
operation = Fog::Compute::Google::Operations.new(:service => service).get(data['name'], nil, data['region'])
|
||||
operation.wait_for { !pending? }
|
||||
reload
|
||||
end
|
||||
|
|
|
@ -32,7 +32,7 @@ module Fog
|
|||
}
|
||||
|
||||
data = service.insert_target_pool(name, region, options).body
|
||||
operation = Fog::Compute::Google::Operations.new(:service => service).get(data['name'], data['zone'])
|
||||
operation = Fog::Compute::Google::Operations.new(:service => service).get(data['name'], nil, data['region'])
|
||||
operation.wait_for { !pending? }
|
||||
reload
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue