Skip to content

Commit

Permalink
fix: disk UUID & WWID always empty in talosctl disks
Browse files Browse the repository at this point in the history
Add missing attributes to conversion of go-blockdevice disk
to protobuf disk.

Signed-off-by: Jonomir <68125495+Jonomir@users.noreply.github.com>
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
  • Loading branch information
Jonomir authored and smira committed Jan 11, 2024
1 parent 8dc112f commit dea9bda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/app/storaged/server.go
Expand Up @@ -40,6 +40,8 @@ func (s *Server) Disks(ctx context.Context, in *emptypb.Empty) (reply *storage.D
Name: d.Name,
Serial: d.Serial,
Modalias: d.Modalias,
Uuid: d.UUID,
Wwid: d.WWID,
Type: storage.Disk_DiskType(d.Type),
BusPath: d.BusPath,
SystemDisk: systemDisk != nil && d.DeviceName == systemDisk.Device().Name(),
Expand Down

0 comments on commit dea9bda

Please sign in to comment.