[PATCH v1 4/8] gen_hosts: Restore missing groups to the fstests hosts template

Chuck Lever <[email protected]>
Newsgroups dev.linux.lists.kdevops
Message-ID <[email protected]>
From: Chuck Lever <[email protected]>

Eliminate this warning:

  [WARNING]: Could not match supplied host pattern, ignoring: dev

The [dev] group has to exist because some Makefiles specify it
explicitly. It can be empty, though.

Fixes: 40df5ef72d19 ("gen_hosts: use kdevops_workflow_name directly for template selection")
Signed-off-by: Chuck Lever <[email protected]>
---
 playbooks/roles/gen_hosts/templates/workflows/fstests.j2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/playbooks/roles/gen_hosts/templates/workflows/fstests.j2 b/playbooks/roles/gen_hosts/templates/workflows/fstests.j2
index 362ce955c1bf..7799fec32b4b 100644
--- a/playbooks/roles/gen_hosts/templates/workflows/fstests.j2
+++ b/playbooks/roles/gen_hosts/templates/workflows/fstests.j2
@@ -19,16 +19,16 @@ ansible_python_interpreter = "{{ kdevops_python_interpreter }}"
 [baseline:vars]
 ansible_python_interpreter = "{{ kdevops_python_interpreter }}"
 
-{% if kdevops_baseline_and_dev %}
 [dev]
+{% if kdevops_baseline_and_dev %}
 {% for node_section in fstests_enabled_test_types %}
 {{ kdevops_host_prefix }}-{{ node_section }}-dev
 {% endfor %}
+{% endif %}
 
 [dev:vars]
 ansible_python_interpreter = "{{ kdevops_python_interpreter }}"
 
-{% endif %}
 [fstests]
 {% for node_section in fstests_enabled_test_types %}
 {{ kdevops_host_prefix }}-{{ node_section }}
-- 
2.51.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.