summaryrefslogtreecommitdiff
path: root/reconfigure/items/samba.py
diff options
context:
space:
mode:
authorAndrew Shadura <andrewsh@debian.org>2018-04-25 14:33:27 +0200
committerAndrew Shadura <andrewsh@debian.org>2018-04-25 14:34:10 +0200
commit14fd6b486cbbfbea4e4ee60f9f9a40e35ac9b3f2 (patch)
tree4f2f902bb837fedf04f6812ebaaf4a82b3bd3569 /reconfigure/items/samba.py
parent47946d0a8a68a8e260c9a44e8b2ab448b86f946e (diff)
parentb50a7a9f6a102709eacd1335c00a1e0d0b259b8e (diff)
Merge the new upstream version.
Diffstat (limited to 'reconfigure/items/samba.py')
-rw-r--r--reconfigure/items/samba.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/reconfigure/items/samba.py b/reconfigure/items/samba.py
index 3288b2e..d691adc 100644
--- a/reconfigure/items/samba.py
+++ b/reconfigure/items/samba.py
@@ -58,8 +58,11 @@ GlobalData.bind_property('security', 'security', default='user')
ShareData.bind_name('name')
for f, d in zip(ShareData.fields, ShareData.default_values):
if d not in [True, False]:
- ShareData.bind_property(f, f.replace(' ', '_'), default=d)
+ ShareData.bind_property(
+ f, f.replace(' ', '_'), default=d, default_remove=[d]
+ )
else:
ShareData.bind_property(
f, f.replace(' ', '_'), default=d,
- getter=yn_getter, setter=yn_setter)
+ getter=yn_getter, setter=yn_setter
+ )