[client] fix ssh command for non-default profile (#4298)

[client] fix ssh command for non-default profile (#4298)
This commit is contained in:
hakansa
2025-08-07 13:08:30 +03:00
committed by GitHub
parent f5b4659adb
commit 6da3943559

View File

@@ -59,8 +59,8 @@ var sshCmd = &cobra.Command{
ctx := internal.CtxInitState(cmd.Context())
pm := profilemanager.NewProfileManager()
activeProf, err := pm.GetActiveProfile()
sm := profilemanager.NewServiceManager(configPath)
activeProf, err := sm.GetActiveProfileState()
if err != nil {
return fmt.Errorf("get active profile: %v", err)
}