Skip to content

Commit

Permalink
Remove leftover commented out logging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Sep 7, 2023
1 parent 1f2ddca commit 0fb47e2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/pkg/agent/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,26 +233,21 @@ func verifyDirectory(dir string) error {
func HasAllSSDs() bool {
block, err := ghw.Block()
if err != nil {
//fmt.Fprintf(os.Stdout, "HasAllSSDs: ghw.Block() returned error: %s\n", err.Error())
return false
}

for _, disk := range block.Disks {
switch disk.DriveType {
case ghw.DRIVE_TYPE_FDD, ghw.DRIVE_TYPE_ODD:
// Floppy or optical drive; we don't care about these
//fmt.Fprintf(os.Stdout, "HasAllSSDs: %s is a FDD or ODD\n", disk.Name)
continue
case ghw.DRIVE_TYPE_SSD:
// SSDs
//fmt.Fprintf(os.Stdout, "HasAllSSDs: %s is a SSD\n", disk.Name)
continue
case ghw.DRIVE_TYPE_HDD:
// HDD (spinning hard disk)
//fmt.Fprintf(os.Stdout, "HasAllSSDs: %s is a HDD\n", disk.Name)
return false
default:
//fmt.Fprintf(os.Stdout, "HasAllSSDs: %s is of unknown type\n", disk.Name)
return false
}
}
Expand Down

0 comments on commit 0fb47e2

Please sign in to comment.