From 858b8b9f16c9869eefe180b8e81a32b47a5fe1ea Mon Sep 17 00:00:00 2001 From: J Jenkins Date: Wed, 8 Oct 2025 12:57:47 +0100 Subject: [PATCH] replace whitespace with ASCII octal \040 --- ansible/roles/nhc/templates/nhc.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/nhc/templates/nhc.conf.j2 b/ansible/roles/nhc/templates/nhc.conf.j2 index 393af5aaf..dc503c8f5 100644 --- a/ansible/roles/nhc/templates/nhc.conf.j2 +++ b/ansible/roles/nhc/templates/nhc.conf.j2 @@ -8,7 +8,7 @@ {# /efi is mounted both directly and via systemd1 autofs, which NHC can't cope with #} {# use `awk '{print $5 " " $10 " " $4 " " $9}' /proc/self/mountinfo | sort -k1` to check that is the only case #} {% set mount_mode = 'rw' if 'rw' in mount.options.split(',') else 'ro' %} -{{ ansible_fqdn }} || check_fs_mount_{{ mount_mode }} -t "{{ mount.fstype }}" -s "{{ mount.device }}" -f "{{ mount.mount }}" +{{ ansible_fqdn }} || check_fs_mount_{{ mount_mode }} -t "{{ mount.fstype }}" -s "{{ mount.device | replace(' ', '\\040') }}" -f "{{ mount.mount }}" {% endfor %} ## Ethernet interface checks