Skip to content

Commit

Permalink
fix(mount): quote location
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tacerus committed Dec 8, 2024
1 parent dacb54e commit cf5b5d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nfs/mount.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit cf5b5d8

Please sign in to comment.