Skip to content

Commit

Permalink
follow-up debug: what's up with etc/ssh on these fedoras πŸ•΅πŸ»β€β™‚οΈ
Browse files Browse the repository at this point in the history
  • Loading branch information
slntopp committed Dec 14, 2024
1 parent 811de90 commit 7f66727
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions providers/os/connection/device/device_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,18 @@ func tryDetectAsset(connId uint32, partition *snapshot.PartitionInfo, conf *inve

// debug
etc, err := os.ReadDir(path.Join(fsPath, "etc"))
log.Debug().Any("etc", etc).Err(err).Msg("device connection> etc dir")
etcs := make([]string, 0)
for _, e := range etc {
etcs = append(etcs, e.Name())
}
log.Debug().Any("etc", etcs).Err(err).Msg("device connection> etc dir")

ssh, err := os.ReadDir(path.Join(fsPath, "etc", "ssh"))
log.Debug().Any("ssh", ssh).Err(err).Msg("device connection> etc/ssh dir")
sshs := make([]string, 0)
for _, s := range ssh {
sshs = append(sshs, s.Name())
}
log.Debug().Any("ssh", sshs).Err(err).Msg("device connection> etc/ssh dir")

// create and initialize fs provider
log.Debug().Str("path", fsPath).Msg("device connection> trying to detect asset")
Expand Down

0 comments on commit 7f66727

Please sign in to comment.