From cf5b5d86929b2911be69002732c68c03e02bc78b Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 8 Dec 2024 03:38:28 +0100 Subject: [PATCH] fix(mount): quote location If an IPv6 location, which needs to be enclosed in square brackets, is passed, rendering would fail due to the square brackets being interpreted as a YAML array. Signed-off-by: Georg Pfuetzenreuter --- nfs/mount.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfs/mount.sls b/nfs/mount.sls index 8319b24..86efca3 100644 --- a/nfs/mount.sls +++ b/nfs/mount.sls @@ -6,7 +6,7 @@ include: {% for m in salt['pillar.get']('nfs:mount', {}).items() %} {{ m[1].mountpoint }}: mount.mounted: - - device: {{ m[1].location }} + - device: '{{ m[1].location }}' - fstype: nfs {# Not every platform needs options #} {% if 'opts' in m[1] or nfs.mount_opts %}