Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- Fix tags on cluster creation (https://github.com/ansible-collections/community.aws/pull/2324).
3 changes: 2 additions & 1 deletion plugins/modules/msk_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ def prepare_create_options(module):
"ClientSubnets": module.params["subnets"],
"InstanceType": module.params["instance_type"],
},
"Tags": module.params["tags"],
}

if module.params["security_groups"] and len(module.params["security_groups"]) != 0:
Expand Down Expand Up @@ -599,7 +600,7 @@ def create_or_update_cluster(client, module):
if module.params["wait"]:
wait_for_cluster_state(client, module, arn=cluster["ClusterArn"], state="ACTIVE")

changed |= update_cluster_tags(client, module, response["ClusterArn"])
changed |= update_cluster_tags(client, module, response["ClusterArn"])

return changed, response

Expand Down
Loading