2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Fix syncfiles compatibility with IPv6

This commit is contained in:
Jarrod Johnson 2023-01-06 09:33:06 -05:00
parent 989066920d
commit 57b6d8677b

View File

@ -191,7 +191,7 @@ def sync_list_to_node(sl, node, suffixes, peerip=None):
if peerip:
targip = peerip
output = util.run(
['rsync', '-rvLD', targdir + '/', 'root@{}:/'.format(targip)])[0]
['rsync', '-rvLD', targdir + '/', 'root@[{}]:/'.format(targip)])[0]
except Exception as e:
if 'CalledProcessError' not in repr(e):
# https://github.com/eventlet/eventlet/issues/413