fix(actions): fix format string that generates the UUID

This commit is contained in:
Emmanuel BENOÎT 2024-05-19 11:55:20 +02:00
parent c6b7992593
commit 7b0389abc1
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ func DeleteRunner(ctx context.Context, id int64) error {
// new record.
b := make([]byte, 8)
binary.LittleEndian.PutUint64(b, uint64(id))
runner.UUID = fmt.Sprintf("ffffffff-ffff-ffff-%.2x%.2x-%.2x%.2x%.2x%.2x%.2x%.2x%.2x%.2x",
runner.UUID = fmt.Sprintf("ffffffff-ffff-ffff-%.2x%.2x-%.2x%.2x%.2x%.2x%.2x%.2x",
b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7])
err = UpdateRunner(ctx, runner, "UUID")