mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
committed by
Preetha Appan
parent
bf9a2168e7
commit
77c01c6283
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user