Skip to content

Commit 33f959a

Browse files
Update tests/integration/targets/lke_cluster_enterprise_no_pools/tasks/main.yaml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f44eccb commit 33f959a

File tree

1 file changed

+6
-1
lines changed
  • tests/integration/targets/lke_cluster_enterprise_no_pools/tasks

1 file changed

+6
-1
lines changed

tests/integration/targets/lke_cluster_enterprise_no_pools/tasks/main.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@
2020
register: all_regions
2121

2222
- set_fact:
23-
lke_e_region: '{{ ( all_regions.regions | selectattr("site_type", "equalto", "core") | selectattr("capabilities", "search", "Kubernetes Enterprise") | list)[1].id }}'
23+
lke_e_region: >-
24+
{{ all_regions.regions
25+
| selectattr("site_type", "equalto", "core")
26+
| selectattr("capabilities", "search", "Kubernetes Enterprise")
27+
| map(attribute="id")
28+
| first }}
2429
2530
- name: Create a Linode LKE Enterprise cluster without node pools
2631
linode.cloud.lke_cluster:

0 commit comments

Comments
 (0)