code formatting
This commit is contained in:
parent
2523a2da6d
commit
9898104e25
|
@ -86,11 +86,14 @@ class SyncthingMonitor:
|
||||||
print("Updating syncthing based on change to cluster info...", flush=True)
|
print("Updating syncthing based on change to cluster info...", flush=True)
|
||||||
print("--> Obtaining updated device list...", flush=True)
|
print("--> Obtaining updated device list...", flush=True)
|
||||||
device_list = self.etcd.get_device_list()
|
device_list = self.etcd.get_device_list()
|
||||||
|
|
||||||
print("--> Adding new devices to syncthing...", flush=True)
|
print("--> Adding new devices to syncthing...", flush=True)
|
||||||
self.syncthing.add_devices(device_list)
|
self.syncthing.add_devices(device_list)
|
||||||
|
|
||||||
print("--> Updating shared folder with new devices...", flush=True)
|
print("--> Updating shared folder with new devices...", flush=True)
|
||||||
self.syncthing.create_shared_folder(SHARED_FOLDER_ID, SHARED_FOLDER_LABEL, self.syncthing_data_path,
|
self.syncthing.create_shared_folder(SHARED_FOLDER_ID, SHARED_FOLDER_LABEL, self.syncthing_data_path,
|
||||||
device_list)
|
device_list)
|
||||||
|
|
||||||
self.syncthing.sync_config()
|
self.syncthing.sync_config()
|
||||||
self.syncthing.print_config()
|
self.syncthing.print_config()
|
||||||
print("--> Update completed successfully!", flush=True)
|
print("--> Update completed successfully!", flush=True)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user