default-node-count will now consider active nodes

Resolves: rhbz#2242088

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I59fe85b7edd73eb81de9f8d0bb7cced0fd470f8c
(cherry picked from commit 10b1ae4a80)
This commit is contained in:
Jiri Podivin 2024-02-19 08:04:23 +01:00
parent e427f2e9ac
commit f9c1526235
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@
- name: Get active node count
set_fact:
active_nodes: "{{ baremetal_nodes_details | community.general.json_query('[?provision_state==`available`]') | count() }}"
active_nodes: "{{ baremetal_nodes_details | community.general.json_query('[?provision_state==`active`]') | count() }}"
- name: Get associated node count
set_fact: