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:
Steven Masley
2023-06-12 14:35:51 -05:00
committed by GitHub
parent f13632cea8
commit b70d2b1767

View File

@ -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,
} }
} }