code formatting

master
B.J. Dweck 2021-02-07 14:04:01 +02:00
parent 2523a2da6d
commit 9898104e25
1 changed files with 3 additions and 0 deletions

View File

@ -86,11 +86,14 @@ class SyncthingMonitor:
print("Updating syncthing based on change to cluster info...", flush=True)
print("--> Obtaining updated device list...", flush=True)
device_list = self.etcd.get_device_list()
print("--> Adding new devices to syncthing...", flush=True)
self.syncthing.add_devices(device_list)
print("--> Updating shared folder with new devices...", flush=True)
self.syncthing.create_shared_folder(SHARED_FOLDER_ID, SHARED_FOLDER_LABEL, self.syncthing_data_path,
device_list)
self.syncthing.sync_config()
self.syncthing.print_config()
print("--> Update completed successfully!", flush=True)