mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 15:11:23 -07:00
Bug fixes for GCP modules (#55361)
This commit is contained in:
parent
4a371ec84e
commit
ef3607f1e7
16 changed files with 23 additions and 30 deletions
|
@ -58,6 +58,7 @@ EXAMPLES = '''
|
|||
project: test_project
|
||||
auth_kind: serviceaccount
|
||||
service_account_file: "/tmp/auth.pem"
|
||||
state: facts
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
|
|
|
@ -61,7 +61,7 @@ extends_documentation_fragment: gcp
|
|||
EXAMPLES = '''
|
||||
- name: create a service account
|
||||
gcp_iam_service_account:
|
||||
name: '"{{resource_name}}@{{gcp_project}}.google.com.iam.gserviceaccount.com"'
|
||||
name: "{{ sa_name }}"
|
||||
display_name: My Ansible test key
|
||||
project: test_project
|
||||
auth_kind: serviceaccount
|
||||
|
|
|
@ -142,7 +142,8 @@ def create(module, link):
|
|||
|
||||
|
||||
def update(module, link):
|
||||
module.fail_json(msg="Topic cannot be edited")
|
||||
delete(module, self_link(module))
|
||||
create(module, self_link(module))
|
||||
|
||||
|
||||
def delete(module, link):
|
||||
|
|
|
@ -142,7 +142,8 @@ def create(module, link):
|
|||
|
||||
|
||||
def update(module, link):
|
||||
module.fail_json(msg="Repository cannot be edited")
|
||||
delete(module, self_link(module))
|
||||
create(module, collection(module))
|
||||
|
||||
|
||||
def delete(module, link):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue