Skip to content

Commit b7e5dde

Browse files
committed
Revert unnecessary cmd variable allocation
1 parent dbf46bb commit b7e5dde

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tmt/steps/provision/__init__.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -2471,18 +2471,18 @@ def rsync() -> None:
24712471
if superuser and self.user != 'root':
24722472
cmd += ['--rsync-path', 'sudo rsync']
24732473

2474-
# Construct the rsync command with potentially multiple sources
2475-
rsync_cmd = Command(
2476-
*cmd,
2477-
*options,
2478-
"-e",
2479-
self._ssh_command.to_element(),
2480-
*[str(s) for s in sources], # Unpack all source paths
2481-
f"{self._ssh_guest}:{destination}",
2474+
self._run_guest_command(
2475+
Command(
2476+
*cmd,
2477+
*options,
2478+
"-e",
2479+
self._ssh_command.to_element(),
2480+
*[str(s) for s in sources], # Unpack all source paths
2481+
f"{self._ssh_guest}:{destination}",
2482+
),
2483+
silent=True,
24822484
)
24832485

2484-
self._run_guest_command(rsync_cmd, silent=True)
2485-
24862486
# Try to push twice, check for rsync after the first failure
24872487
try:
24882488
rsync()

0 commit comments

Comments
 (0)