Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
slntopp committed Dec 16, 2024
1 parent 11fd7a7 commit 295f9f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/os/id/sshhostkey/sshhostkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ func Detect(t shared.Connection, p *inventory.Platform) ([]string, error) {
if os.IsPermission(err) {
log.Warn().Err(err).Str("hostkey", hostKeyFilePath).Msg("no permission to access ssh hostkey")
continue
} else if os.IsNotExist(err) {
continue
} else if err != nil {
return nil, errors.Wrap(err, "could not read file:"+hostKeyFilePath)
}
Expand Down

0 comments on commit 295f9f0

Please sign in to comment.