mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-09 12:20:27 -07:00
fix: fix finger print issue while updating gcp services
Resolves: https://github.com/ansible-collections/google.cloud/issues/342
This commit is contained in:
parent
2b8cbcc072
commit
da28bcb845
2 changed files with 9 additions and 4 deletions
|
@ -1423,6 +1423,7 @@ def main():
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||||
affinity_cookie_ttl_sec=dict(type='int'),
|
affinity_cookie_ttl_sec=dict(type='int'),
|
||||||
|
fingerprint=dict(type='str'),
|
||||||
backends=dict(
|
backends=dict(
|
||||||
type='list',
|
type='list',
|
||||||
elements='dict',
|
elements='dict',
|
||||||
|
@ -1540,6 +1541,7 @@ def main():
|
||||||
changed = False
|
changed = False
|
||||||
|
|
||||||
if fetch:
|
if fetch:
|
||||||
|
module.params['fingerprint'] = fetch['fingerprint']
|
||||||
if state == 'present':
|
if state == 'present':
|
||||||
if is_different(module, fetch):
|
if is_different(module, fetch):
|
||||||
update(module, self_link(module), kind)
|
update(module, self_link(module), kind)
|
||||||
|
@ -1601,6 +1603,7 @@ def resource_to_request(module):
|
||||||
u'sessionAffinity': module.params.get('session_affinity'),
|
u'sessionAffinity': module.params.get('session_affinity'),
|
||||||
u'timeoutSec': module.params.get('timeout_sec'),
|
u'timeoutSec': module.params.get('timeout_sec'),
|
||||||
u'logConfig': BackendServiceLogconfig(module.params.get('log_config', {}), module).to_request(),
|
u'logConfig': BackendServiceLogconfig(module.params.get('log_config', {}), module).to_request(),
|
||||||
|
u'fingerprint': module.params.get('fingerprint')
|
||||||
}
|
}
|
||||||
return_vals = {}
|
return_vals = {}
|
||||||
for k, v in request.items():
|
for k, v in request.items():
|
||||||
|
|
|
@ -4972,6 +4972,7 @@ def main():
|
||||||
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
state=dict(default='present', choices=['present', 'absent'], type='str'),
|
||||||
default_service=dict(type='dict'),
|
default_service=dict(type='dict'),
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
|
fingerprint=dict(type='str'),
|
||||||
header_action=dict(
|
header_action=dict(
|
||||||
type='dict',
|
type='dict',
|
||||||
options=dict(
|
options=dict(
|
||||||
|
@ -5486,8 +5487,8 @@ def main():
|
||||||
changed = False
|
changed = False
|
||||||
|
|
||||||
if fetch:
|
if fetch:
|
||||||
|
module.params['fingerprint'] = fetch['fingerprint']
|
||||||
if state == 'present':
|
if state == 'present':
|
||||||
if is_different(module, fetch):
|
|
||||||
update(module, self_link(module), kind)
|
update(module, self_link(module), kind)
|
||||||
fetch = fetch_resource(module, self_link(module), kind)
|
fetch = fetch_resource(module, self_link(module), kind)
|
||||||
changed = True
|
changed = True
|
||||||
|
@ -5534,6 +5535,7 @@ def resource_to_request(module):
|
||||||
u'tests': UrlMapTestsArray(module.params.get('tests', []), module).to_request(),
|
u'tests': UrlMapTestsArray(module.params.get('tests', []), module).to_request(),
|
||||||
u'defaultUrlRedirect': UrlMapDefaulturlredirect(module.params.get('default_url_redirect', {}), module).to_request(),
|
u'defaultUrlRedirect': UrlMapDefaulturlredirect(module.params.get('default_url_redirect', {}), module).to_request(),
|
||||||
u'defaultRouteAction': UrlMapDefaultrouteaction(module.params.get('default_route_action', {}), module).to_request(),
|
u'defaultRouteAction': UrlMapDefaultrouteaction(module.params.get('default_route_action', {}), module).to_request(),
|
||||||
|
u'fingerprint': module.params.get('fingerprint')
|
||||||
}
|
}
|
||||||
return_vals = {}
|
return_vals = {}
|
||||||
for k, v in request.items():
|
for k, v in request.items():
|
||||||
|
|
Loading…
Add table
Reference in a new issue