Skip to content
Draft
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
13 changes: 8 additions & 5 deletions pkg/driver/wsl2/wsl_driver_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,13 @@ func (l *LimaWslDriver) InspectStatus(ctx context.Context, inst *limatype.Instan
inst.Status = status
}

return inst.Status
}

func (l *LimaWslDriver) SSHAddress(ctx context.Context) (string, error) {
inst := l.Instance
var err error

inst.SSHLocalPort = 22

if inst.Status == limatype.StatusRunning {
Expand All @@ -201,7 +208,7 @@ func (l *LimaWslDriver) InspectStatus(ctx context.Context, inst *limatype.Instan
}
}

return inst.Status
return inst.SSHAddress, err
}

func (l *LimaWslDriver) Delete(ctx context.Context) error {
Expand Down Expand Up @@ -317,10 +324,6 @@ func (l *LimaWslDriver) Info() driver.Info {
return info
}

func (l *LimaWslDriver) SSHAddress(_ context.Context) (string, error) {
return "127.0.0.1", nil
}

func (l *LimaWslDriver) Create(_ context.Context) error {
return nil
}
Expand Down
Loading