return history properly sorted

This commit is contained in:
anianz
2020-11-11 12:55:48 +01:00
parent cbbfd94fbb
commit df1fd83256
3 changed files with 15 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ func Check(err error, msg string) {
}
}
func GetHistory(source resource.Source) []resource.JobVersion {
func GetHistory(source resource.Source) resource.History {
cmd := exec.Command(
"nomad",
"job",