diff --git a/templates/smb.conf.j2 b/templates/smb.conf.j2 index 45c42a0..f4b6bbb 100644 --- a/templates/smb.conf.j2 +++ b/templates/smb.conf.j2 @@ -61,11 +61,13 @@ vfs objects = {% for obj in share.vfs_objects %}{{obj.name}} {% endfor %} {% for obj in share.vfs_objects %} +{% if obj.options is defined %} {% if obj.options|length > 0 %} {% for opt in obj.options %} {{ obj.name }}:{{ opt.name }} = {{ opt.value }} {% endfor %} {% endif %} +{% endif %} {% endfor %}{% endif %} path = {{ share.path|default([samba_shares_root,share.name]|join('/')) }} public = {{ share.public|default('no') }}