mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
fix: correct the correct cli output for 'template version list --output=json' (#7984)
* fix: correct 'template version list --output=json' cli cmd
This commit is contained in:
@ -105,11 +105,12 @@ func templateVersionsToRows(activeVersionID uuid.UUID, templateVersions ...coder
|
|||||||
}
|
}
|
||||||
|
|
||||||
rows[i] = templateVersionRow{
|
rows[i] = templateVersionRow{
|
||||||
Name: templateVersion.Name,
|
TemplateVersion: templateVersion,
|
||||||
CreatedAt: templateVersion.CreatedAt,
|
Name: templateVersion.Name,
|
||||||
CreatedBy: templateVersion.CreatedBy.Username,
|
CreatedAt: templateVersion.CreatedAt,
|
||||||
Status: strings.Title(string(templateVersion.Job.Status)),
|
CreatedBy: templateVersion.CreatedBy.Username,
|
||||||
Active: activeStatus,
|
Status: strings.Title(string(templateVersion.Job.Status)),
|
||||||
|
Active: activeStatus,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user