This commit is contained in:
Alex Dadgar
2016-05-11 18:51:48 -07:00
parent 8a58fa4e7c
commit 614a93e1e8
5 changed files with 161 additions and 1 deletions

View File

@@ -99,6 +99,7 @@ func (s *HTTPServer) jobPlan(resp http.ResponseWriter, req *http.Request,
if err := s.agent.RPC("Job.Plan", &args, &out); err != nil {
return nil, err
}
setIndex(resp, out.Index)
return out, nil
}