From 082d5d52756adff14733ec25a947defdefcad66c Mon Sep 17 00:00:00 2001 From: Slavek Jurkowski Date: Wed, 3 May 2017 02:48:19 +0000 Subject: [PATCH] update documentation --- templates/smb.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) 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') }}