2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-19 00:42:20 +00:00

Add error message if rsync is missing

This commit is contained in:
Markus Hilger
2026-10-20 19:32:47 +02:00
parent fcdd31167b
commit 4e55d9f1e8
+4
View File
@@ -349,6 +349,10 @@ def start_syncfiles(nodename, cfg, suffixes, principals=[]):
sl = SyncList(synclist, nodename, cfg)
if not (sl.appendmap or sl.mergemap or sl.replacemap or sl.appendoncemap):
return 200, 'OK', 'Empty synclist' # the synclist has no actual entries
if not shutil.which('rsync'):
return 500, 'Error', (
'File synchronization requires rsync. '
'Install rsync on the Confluent server and retry.')
if nodename in syncrunners:
if syncrunners[nodename].done():
try: