mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-06-05 08:29:10 -07:00
fix gcp_iam_role not updating
gcp_iam_role was not updating previously. The API uses a PATCH and not a PUT. Also fixing an accidental leftover diff from a bad merge. fixes #236.
This commit is contained in:
parent
d063d44b73
commit
2db181d084
6 changed files with 41 additions and 18 deletions
|
@ -182,7 +182,7 @@ import json
|
|||
|
||||
def main():
|
||||
module = GcpModule(argument_spec=dict(
|
||||
page_size=dict(type='int')
|
||||
page_size=dict(type='int')
|
||||
))
|
||||
|
||||
if not module.params['scopes']:
|
||||
|
@ -200,7 +200,7 @@ def fetch_list(module, link):
|
|||
auth = GcpSession(module, 'resourcemanager')
|
||||
params = {}
|
||||
if "page_size" in module.params:
|
||||
params["pageSize"] = module.params.get("page_size")
|
||||
params["pageSize"] = module.params.get("page_size")
|
||||
return auth.list(link, return_if_object, array_name='projects', params=params)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue