cli: fix unnecessary sudo when unspecified user defaults to root

This commit is contained in:
Michael Hoang
2025-04-22 17:43:15 +10:00
parent b5901d5577
commit 91a2739ea3
2 changed files with 6 additions and 2 deletions

View File

@@ -114,7 +114,9 @@ def test_parse_deployment_address(
assert result.host == expected_host
assert result.port == expected_port
assert result.user == expected_user
assert result.user == expected_user or (
expected_user == "" and result.user == "root"
)
assert result.ssh_options == expected_options