Skip to content

Commit 10a8ace

Browse files
committed
allow missing inventory groups (as per docs) when validating nodegroups
1 parent 02ba27c commit 10a8ace

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{{ _openhpc_check_hosts | dict2items | rejectattr('value', 'equalto', 1) | items2dict | to_nice_yaml }}
1616
vars:
1717
_openhpc_node_inventory_groups: "{{ openhpc_nodegroups | map(attribute='name') | map('regex_replace', '^', openhpc_cluster_name ~ '_') }}"
18-
_openhpc_check_hosts: "{{ _openhpc_node_inventory_groups | map('extract', groups) | flatten | community.general.counter }}"
18+
_openhpc_check_hosts: "{{ groups | dict2items | list | selectattr('key', 'in', _openhpc_node_inventory_groups) | map(attribute='value') | flatten | community.general.counter }}"
1919

2020
- name: Fail if configuration is old
2121
assert:

0 commit comments

Comments
 (0)