From ab8cc89756efc12a0ce5720e575a54f05f0a5ec9 Mon Sep 17 00:00:00 2001 From: Mathias Lafeldt Date: Thu, 15 Sep 2016 14:24:40 +0200 Subject: [PATCH] Include parent ID in job info returned by Go API At the moment, this ID is only included when using `Jobs().List()`, which returns `api.JobListStub`. With this change, the ID will also be available when using `Jobs().Info()`, which returns `api.Job`. In fact, `ParentID` is currently the only field present in `api.JobListStub` that is not part of `api.Job`. Note: This has the side effect that `nomad run -output` will now include an empty `ParentID`. --- api/jobs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/jobs.go b/api/jobs.go index 0caa4366c..fcd103b52 100644 --- a/api/jobs.go +++ b/api/jobs.go @@ -191,6 +191,7 @@ type PeriodicConfig struct { type Job struct { Region string ID string + ParentID string Name string Type string Priority int