aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Smoker <classicsc@users.noreply.github.com>2017-02-27 10:20:23 -0800
committerSamuel Smoker <classicsc@users.noreply.github.com>2017-02-27 10:20:23 -0800
commit5e35e16d2ecb7cd2e27b259aa3da5b67a1d4ca4c (patch)
treea5d50f3a821b3877eb7159f1e8659e9cad82a98a
parentdb0378bf57b1e2043924ddc4d06d2fe74fed5697 (diff)
downloadsyncthingmanager-5e35e16d2ecb7cd2e27b259aa3da5b67a1d4ca4c.tar.xz
syncthingmanager-5e35e16d2ecb7cd2e27b259aa3da5b67a1d4ca4c.zip
Made folder creation defaults consistent with GUI.
-rw-r--r--syncthingmanager/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/syncthingmanager/__init__.py b/syncthingmanager/__init__.py
index 3d7bc8f..da8e219 100644
--- a/syncthingmanager/__init__.py
+++ b/syncthingmanager/__init__.py
@@ -238,7 +238,8 @@ class SyncthingManager(Syncthing):
entered: " + path)
folder = dict({'id': folderid, 'label': label, 'path': str(path),
'type': foldertype, 'rescanIntervalS': rescan, 'fsync': True,
- 'autoNormalize': True, 'maxConflicts': 10, 'pullerSleepS': 0})
+ 'autoNormalize': True, 'maxConflicts': 10, 'pullerSleepS': 0,
+ 'minDiskFreePct': 1})
config['folders'].append(folder)
self.system.set_config(config)
@@ -403,7 +404,7 @@ def arguments():
help="remove a device")
remove_device_parser.add_argument('device', metavar='DEVICE', help="the name or ID to be removed")
- edit_device_parser = device_subparsers.add_subparsers(dest='deviceparser_name',
+ edit_device_parser = device_subparsers.add_parser('edit',
help="edit device properties")
edit_device_parser.add_argument('device', metavar='DEVICE', help='the device name or ID to edit')
edit_device_parser.add_argument('-n', '--name', metavar='NAME', help='set or change the device name')