Skip to content

Commit

Permalink
Merge pull request #2256 from Luap99/win-ssh-path
Browse files Browse the repository at this point in the history
pkg/ssh: fix windows path logic
  • Loading branch information
openshift-merge-bot[bot] authored Dec 5, 2024
2 parents 38e8146 + 512cfbd commit 324d166
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/ssh/connection_golang.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"net/url"
"os"
"os/user"
"path"
"path/filepath"
"regexp"
"strings"
Expand Down Expand Up @@ -313,7 +312,7 @@ func ValidateAndConfigure(uri *url.URL, iden string, insecureIsMachineConnection
if !errors.Is(err, os.ErrNotExist) {
return nil, err
}
keyDir := path.Dir(keyFilePath)
keyDir := filepath.Dir(keyFilePath)
if err := fileutils.Exists(keyDir); errors.Is(err, os.ErrNotExist) {
if err := os.Mkdir(keyDir, 0o700); err != nil {
return nil, err
Expand Down

0 comments on commit 324d166

Please sign in to comment.