Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions run_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,13 +690,13 @@
client = paramiko.SSHClient()
client.load_system_host_keys()
client.set_missing_host_key_policy(paramiko.WarningPolicy)
client.connect(DOWNLOADS_SERVER, port=22, username=db["ssh_user"])
client.connect(server, port=22, username=db["ssh_user"])

Check warning on line 693 in run_release.py

View check run for this annotation

Codecov / codecov/patch

run_release.py#L693

Added line #L693 was not covered by tests
transport = client.get_transport()
assert transport is not None, f"SSH transport to {DOWNLOADS_SERVER} is None"
assert transport is not None, f"SSH transport to {server} is None"

Check warning on line 695 in run_release.py

View check run for this annotation

Codecov / codecov/patch

run_release.py#L695

Added line #L695 was not covered by tests

destination = Path(f"/home/psf-users/{db['ssh_user']}/{db['release']}")
ftp_client = MySFTPClient.from_transport(transport)
assert ftp_client is not None, f"SFTP client to {DOWNLOADS_SERVER} is None"
assert ftp_client is not None, f"SFTP client to {server} is None"

Check warning on line 699 in run_release.py

View check run for this annotation

Codecov / codecov/patch

run_release.py#L699

Added line #L699 was not covered by tests

client.exec_command(f"rm -rf {destination}")

Expand Down
Loading