mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-06 10:50:28 -07:00
Use Redis URL fields for their intended purposes (#248)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
a075750f3b
commit
d9ee4beac6
1 changed files with 5 additions and 1 deletions
|
@ -305,7 +305,7 @@ def main():
|
|||
changed = True
|
||||
else:
|
||||
if state == 'present':
|
||||
fetch = create(module, collection(module))
|
||||
fetch = create(module, create_link(module))
|
||||
changed = True
|
||||
else:
|
||||
fetch = {}
|
||||
|
@ -378,6 +378,10 @@ def self_link(module):
|
|||
|
||||
|
||||
def collection(module):
|
||||
return "https://redis.googleapis.com/v1/projects/{project}/locations/{region}/instances".format(**module.params)
|
||||
|
||||
|
||||
def create_link(module):
|
||||
return "https://redis.googleapis.com/v1/projects/{project}/locations/{region}/instances?instanceId={name}".format(**module.params)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue