Skip to content

Commit 74966a9

Browse files
authored
Fix ydb_slice (#3834)
1 parent 1cbd4fc commit 74966a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ydb/tools/ydbd_slice/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def ssh_args():
497497
args.add_argument(
498498
"--ssh-user",
499499
metavar="SSH_USER",
500-
default=[current_user],
500+
default=current_user,
501501
help="user for ssh interaction with slice. Default value is $USER "
502502
"(which equals {user} now)".format(user=current_user),
503503
)

ydb/tools/ydbd_slice/nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def _copy_between_nodes(self, hub, hub_path, hosts, remote_path):
128128
if self._dry_run:
129129
continue
130130
user = self._ssh_user or os.getenv("USER")
131-
cmd = self._get_ssh_command_prefix
131+
cmd = self._get_ssh_command_prefix(dst)
132132
cmd.extend([
133133
"sudo", "rsync", "-avqW", "--del", "--no-o", "--no-g",
134134
"--rsh='ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -l %s'" % user,

0 commit comments

Comments
 (0)