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:
Yusuke Tsutsumi 2022-12-16 00:29:24 +00:00 committed by Yusuke Tsutsumi
parent d063d44b73
commit 2db181d084
6 changed files with 41 additions and 18 deletions

View file

@ -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)