diff --git a/client/client.go b/client/client.go index f3565727b..2d8060b07 100644 --- a/client/client.go +++ b/client/client.go @@ -867,7 +867,7 @@ func (c *Client) restoreState() error { arConf := &allocrunner.Config{ Alloc: alloc, Logger: c.logger, - ClientConfig: c.config, + ClientConfig: c.configCopy, StateDB: c.stateDB, StateUpdater: c, DeviceStatsReporter: c, @@ -2059,7 +2059,7 @@ func (c *Client) addAlloc(alloc *structs.Allocation, migrateToken string) error arConf := &allocrunner.Config{ Alloc: alloc, Logger: c.logger, - ClientConfig: c.config, + ClientConfig: c.configCopy, StateDB: c.stateDB, Consul: c.consulService, Vault: c.vaultClient,