From 90fb7d06fba5d8924841fd56e9b46488a13935ac Mon Sep 17 00:00:00 2001 From: Kenichi Omichi Date: Fri, 5 Jan 2024 06:51:04 +0900 Subject: [PATCH] Fix example of eks_nodegroup (#2028) Fix example of eks_nodegroup SUMMARY When using the example as a reference, ansible-playbook command outputs the following errors: fatal: [localhost]: FAILED! => {"changed": false, "msg": "argument 'scaling_config' is of type and we were unable to convert to dict: cannot be converted to a dict"} fatal: [localhost]: FAILED! => {"changed": false, "msg": "argument 'labels' is of type and we were unable to convert to dict: cannot be converted to a dict"} fatal: [localhost]: FAILED! => {"changed": false, "msg": "value of capacity_type must be one of: ON_DEMAND, SPOT, got: on_demand"} This fixes those issues. ISSUE TYPE Docs Pull Request COMPONENT NAME eks_nodegroup ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis Reviewed-by: Mark Chappell (cherry picked from commit bfd1d80b6aae496a97e4e0f7fcee2a8f9438116e) --- plugins/modules/eks_nodegroup.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/modules/eks_nodegroup.py b/plugins/modules/eks_nodegroup.py index 51f74c22164..2e13ddb9130 100644 --- a/plugins/modules/eks_nodegroup.py +++ b/plugins/modules/eks_nodegroup.py @@ -184,19 +184,19 @@ - subnet-qwerty123 - subnet-asdfg456 scaling_config: - - min_size: 1 - - max_size: 2 - - desired_size: 1 + min_size: 1 + max_size: 2 + desired_size: 1 disk_size: 20 instance_types: 't3.micro' ami_type: 'AL2_x86_64' labels: - - 'teste': 'test' + 'teste': 'test' taints: - key: 'test' value: 'test' effect: 'NO_SCHEDULE' - capacity_type: 'on_demand' + capacity_type: 'ON_DEMAND' - name: Remove an EKS Nodegrop community.aws.eks_nodegroup: