From 975da08856c40f0647d5b6f378dd5c3223bc3088 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Tue, 11 Jul 2023 15:38:36 +0200 Subject: [PATCH] [core] Output ODC task id as string --- core/integration/odc/plugin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/integration/odc/plugin.go b/core/integration/odc/plugin.go index 20a64666..605f0f49 100644 --- a/core/integration/odc/plugin.go +++ b/core/integration/odc/plugin.go @@ -92,7 +92,7 @@ type OdcPartitionInfo struct { } type OdcDevice struct { - TaskId uint64 `json:"taskId"` + TaskId string `json:"taskId"` State string `json:"state"` Path string `json:"path"` Ignored bool `json:"ignored"` @@ -214,7 +214,7 @@ func (p *Plugin) queryPartitionStatus() { odcPartInfoSlice[idx].Devices = make([]OdcDevice, len(odcPartStateRep.Devices)) for i, device := range odcPartStateRep.Devices { odcPartInfoSlice[idx].Devices[i] = OdcDevice{ - TaskId: device.Id, + TaskId: strconv.FormatUint(device.Id, 10), State: device.State, Path: device.Path, Ignored: device.Ignored,