mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-27 07:01:32 -07:00
Bug fixes for GCP modules (#51577)
This commit is contained in:
parent
ee06a8c320
commit
cdb4c9b272
23 changed files with 24 additions and 24 deletions
|
@ -340,7 +340,7 @@ def is_different(module, response):
|
|||
def response_to_hash(module, response):
|
||||
return {
|
||||
u'description': module.params.get('description'),
|
||||
u'gatewayIPv4': response.get(u'gateway_ipv4'),
|
||||
u'gatewayIPv4': response.get(u'gatewayIPv4'),
|
||||
u'id': response.get(u'id'),
|
||||
u'IPv4Range': module.params.get('ipv4_range'),
|
||||
u'name': module.params.get('name'),
|
||||
|
@ -375,7 +375,7 @@ def wait_for_completion(status, op_result, module):
|
|||
while status != 'DONE':
|
||||
raise_if_errors(op_result, ['error', 'errors'], module)
|
||||
time.sleep(1.0)
|
||||
op_result = fetch_resource(module, op_uri, 'compute#operation')
|
||||
op_result = fetch_resource(module, op_uri, 'compute#operation', False)
|
||||
status = navigate_hash(op_result, ['status'])
|
||||
return op_result
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue