Skip to content

Commit a3b48c6

Browse files
Jonomirsmira
authored andcommitted
fix: disk UUID & WWID always empty in talosctl disks
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> (cherry picked from commit dea9bda)
1 parent e4a2341 commit a3b48c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/app/storaged/server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ func (s *Server) Disks(ctx context.Context, in *emptypb.Empty) (reply *storage.D
4040
Name: d.Name,
4141
Serial: d.Serial,
4242
Modalias: d.Modalias,
43+
Uuid: d.UUID,
44+
Wwid: d.WWID,
4345
Type: storage.Disk_DiskType(d.Type),
4446
BusPath: d.BusPath,
4547
SystemDisk: systemDisk != nil && d.DeviceName == systemDisk.Device().Name(),

0 commit comments

Comments
 (0)