From 5e35e16d2ecb7cd2e27b259aa3da5b67a1d4ca4c Mon Sep 17 00:00:00 2001 From: Samuel Smoker Date: Mon, 27 Feb 2017 10:20:23 -0800 Subject: Made folder creation defaults consistent with GUI. --- syncthingmanager/__init__.py | 5 +++-- 1 file 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') -- cgit v1.2.1