diff --git a/templates/smb.conf.j2 b/templates/smb.conf.j2 index f4b6bbb..f2260bd 100644 --- a/templates/smb.conf.j2 +++ b/templates/smb.conf.j2 @@ -57,7 +57,7 @@ {% if share.comment is defined %} comment = {{ share.comment }} {% endif %} -{% if share.vfs_objects|length > 0 %} +{% if share.vfs_objects is defined and share.vfs_objects|length > 0 %} vfs objects = {% for obj in share.vfs_objects %}{{obj.name}} {% endfor %} {% for obj in share.vfs_objects %}