Skip to content

Commit 0dff59b

Browse files
sjpbJenksJ
andauthored
replace whitespace with ASCII octal \040 (#815) (#824)
Co-authored-by: J Jenkins <JenksJ@users.noreply.github.com>
1 parent 60c85ff commit 0dff59b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible/roles/nhc/templates/nhc.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{# /efi is mounted both directly and via systemd1 autofs, which NHC can't cope with #}
99
{# use `awk '{print $5 " " $10 " " $4 " " $9}' /proc/self/mountinfo | sort -k1` to check that is the only case #}
1010
{% set mount_mode = 'rw' if 'rw' in mount.options.split(',') else 'ro' %}
11-
{{ ansible_fqdn }} || check_fs_mount_{{ mount_mode }} -t "{{ mount.fstype }}" -s "{{ mount.device }}" -f "{{ mount.mount }}"
11+
{{ ansible_fqdn }} || check_fs_mount_{{ mount_mode }} -t "{{ mount.fstype }}" -s "{{ mount.device | replace(' ', '\\040') }}" -f "{{ mount.mount }}"
1212
{% endfor %}
1313

1414
## Ethernet interface checks

0 commit comments

Comments
 (0)