Merge pull request #12307 from hashicorp/b-groupservices-avoid-double-tg-lookup
client: avoid double group lookup within groupservice hook setup.
This commit is contained in:
commit
91e4d20b1d
|
@ -78,7 +78,7 @@ func newGroupServiceHook(cfg groupServiceHookConfig) *groupServiceHook {
|
|||
delay: shutdownDelay,
|
||||
networkStatusGetter: cfg.networkStatusGetter,
|
||||
logger: cfg.logger.Named(groupServiceHookName),
|
||||
services: cfg.alloc.Job.LookupTaskGroup(cfg.alloc.TaskGroup).Services,
|
||||
services: tg.Services,
|
||||
shutdownDelayCtx: cfg.shutdownDelayCtx,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue