Skip to content

Commit

Permalink
Use explicitly specified asset name in SSH connection. (#4773)
Browse files Browse the repository at this point in the history
Signed-off-by: Vasil Sirakov <[email protected]>
  • Loading branch information
VasilSirakov authored Oct 23, 2024
1 parent c532589 commit 2eb20ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/os/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ func (s *Service) connect(req *plugin.ConnectReq, callback plugin.ProviderCallba

fingerprint, p, err := id.IdentifyPlatform(conn, req, asset.Platform, asset.IdDetector)
if err == nil {
if conn.Asset().Connections[0].Runtime != "vagrant" {
if asset.Name == "" && conn.Asset().Connections[0].Runtime != "vagrant" {
asset.Name = fingerprint.Name
}
asset.PlatformIds = fingerprint.PlatformIDs
Expand Down

0 comments on commit 2eb20ce

Please sign in to comment.