Skip to content

Commit 0c9f357

Browse files
authored
fix: do not error out if ssh config is empty (#1632)
As connections can now be stored in the internal connection, a missing or invalid ssh config should not cause the entire list of connections to be empty. This change ignores the error from the ssh config and proceeds to construct the list without it.
1 parent 73561dc commit 0c9f357

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/remote/conncontroller/conncontroller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,8 @@ func GetConnectionsList() ([]string, error) {
712712

713713
fromConfig, err := GetConnectionsFromConfig()
714714
if err != nil {
715-
return nil, err
715+
// this is not a fatal error. do not return
716+
log.Printf("warning: no connections from ssh config found: %v", err)
716717
}
717718

718719
// sort into one final list and remove duplicates

0 commit comments

Comments
 (0)