Skip to content

Commit 3c9f87e

Browse files
committed
gen_nodes/gen_hosts: avoid usage of fs_config_path on task names
The variable fs_config_path is not defined when we don't enable fstests and so we'll get a warning about it not being defined. Fix this by not using it on task names. Signed-off-by: Luis Chamberlain <[email protected]>
1 parent cab653a commit 3c9f87e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

playbooks/roles/gen_hosts/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@
4949
- ansible_hosts_template.stat.exists
5050
tags: vars
5151

52-
- name: Verify fstest config file file exists {{ fs_config_path }}
52+
- name: Verify fstest config file exists
5353
stat:
5454
path: "{{ fs_config_path }}"
5555
register: fstests_config_file_reg
5656
when:
57-
- is_fstests
57+
- is_fstests|bool
5858

5959
- name: Generate the Ansible hosts file for a Linux kernel build
6060
tags: [ 'hosts' ]

playbooks/roles/gen_nodes/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
- ansible_nodes_template.stat.exists
110110
tags: vars
111111

112-
- name: Verify fstest config file file exists {{ fs_config_path }}
112+
- name: Verify fstest config file exists
113113
stat:
114114
path: "{{ fs_config_path }}"
115115
register: fstests_config_file_reg

0 commit comments

Comments
 (0)