From b6fd2a5bbdf3199ce0077db7524baeeaf7448b93 Mon Sep 17 00:00:00 2001 From: Bert Van Vreckem Date: Tue, 9 May 2017 10:02:14 +0200 Subject: [PATCH] Add check whether share.vfs_objects is defined --- templates/smb.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %}