Fix comment

Co-Authored-By: preetapan <preetha@hashicorp.com>
This commit is contained in:
Michael Schurter
2019-01-22 08:53:26 -06:00
committed by Preetha Appan
parent bf9a2168e7
commit 77c01c6283

View File

@@ -200,7 +200,7 @@ func (h *serviceHook) getTaskServices() *agentconsul.TaskServices {
// values from the task's environment.
func interpolateServices(taskEnv *taskenv.TaskEnv, services []*structs.Service) []*structs.Service {
// Guard against not having a valid taskEnv. This can be the case if the
// PreKilling or Exited hook is run before post-run.
// PreKilling or Exited hook is run before Poststart.
if taskEnv == nil || len(services) == 0 {
return nil
}