Skip to content

Commit

Permalink
[core] Output ODC task id as string
Browse files Browse the repository at this point in the history
  • Loading branch information
teo committed Jul 11, 2023
1 parent 465937c commit 975da08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/integration/odc/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 975da08

Please sign in to comment.