Skip to content

Commit

Permalink
fix: sftp connection url
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Aug 23, 2024
1 parent 34ef881 commit efd2702
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connection_filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package artifacts

import (
gocontext "context"
"fmt"
"io"
"net/url"
"os"
Expand Down Expand Up @@ -87,7 +88,7 @@ func GetFSForConnection(ctx context.Context, c models.Connection) (FilesystemRW,
return nil, err
}

client, err := fs.NewSSHFS(parsedURL.Host, c.Username, c.Password)
client, err := fs.NewSSHFS(fmt.Sprintf("%s:%s", parsedURL.Host, c.Properties["port"]), c.Username, c.Password)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit efd2702

Please sign in to comment.