Skip to content

Commit

Permalink
label templates: drop spaces from Storage variables (#847)
Browse files Browse the repository at this point in the history
was a leftover from label templates rework

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
  • Loading branch information
fgiudici authored Sep 20, 2024
1 parent e6bca47 commit c922300
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/hostinfo/hostinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,12 +449,12 @@ func ExtractLabels(systemData HostInfo) map[string]interface{} {
for i, disk := range systemData.Block.Disks {
blockNum := strconv.Itoa(i)
disksMap[blockNum] = map[string]interface{}{
"Size": strconv.Itoa(int(disk.SizeBytes)),
"Name": disk.Name,
"Drive Type": disk.DriveType.String(),
"Storage Controller": disk.StorageController.String(),
"Removable": strconv.FormatBool(disk.IsRemovable),
"Model": disk.Model,
"Size": strconv.Itoa(int(disk.SizeBytes)),
"Name": disk.Name,
"DriveType": disk.DriveType.String(),
"StorageController": disk.StorageController.String(),
"Removable": strconv.FormatBool(disk.IsRemovable),
"Model": disk.Model,
// "Partitions": reflectValToInterface(reflect.ValueOf(disk.Partitions)),
}
// handy reference by disk name
Expand Down

0 comments on commit c922300

Please sign in to comment.