From 24d3347eda352233dc90dcf05d6969f8df1c15c3 Mon Sep 17 00:00:00 2001 From: Chetan Giradkar <cgiradka@redhat.com> Date: Thu, 21 Sep 2023 11:31:43 +0100 Subject: [PATCH] Use ActiveServiceDestination in ssh remoteConnectionUsername [NO NEW TESTS NEEDED] Signed-off-by: Chetan Giradkar <cgiradka@redhat.com> --- cmd/podman/machine/ssh.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/podman/machine/ssh.go b/cmd/podman/machine/ssh.go index c2407f2265..c662e59cd4 100644 --- a/cmd/podman/machine/ssh.go +++ b/cmd/podman/machine/ssh.go @@ -100,10 +100,7 @@ func remoteConnectionUsername() (string, error) { if err != nil { return "", err } - dest, _, _, err := cfg.ActiveDestination() - if err != nil { - return "", err - } + dest := cfg.Engine.ServiceDestinations[cfg.Engine.ActiveService].URI uri, err := url.Parse(dest) if err != nil { return "", err