Skip to content

Commit

Permalink
Show '-' for empty make in list drives (#791)
Browse files Browse the repository at this point in the history
Signed-off-by: Bala.FA <bala@minio.io>
  • Loading branch information
balamurugana committed Jun 6, 2023
1 parent b3edac0 commit ca9ebb2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/kubectl-directpv/list_drives.go
Expand Up @@ -198,10 +198,14 @@ func listDrivesMain(ctx context.Context) {
if drive.IsUnschedulable() {
status += ",SchedulingDisabled"
}
driveMake := drive.Status.Make
if driveMake == "" {
driveMake = "-"
}
row := []interface{}{
drive.GetNodeID(),
drive.GetDriveName(),
drive.Status.Make,
driveMake,
printableBytes(drive.Status.TotalCapacity),
printableBytes(drive.Status.FreeCapacity),
volumes,
Expand Down

0 comments on commit ca9ebb2

Please sign in to comment.