Skip to content

Commit

Permalink
Merge pull request #4989 from hashicorp/dani/b-client-update-race-con…
Browse files Browse the repository at this point in the history
…dition

client: Give a copy of clientconfig to allocrunner
  • Loading branch information
endocrimes authored Dec 17, 2018
2 parents a282cf6 + 30bed98 commit bba8b4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -2057,7 +2057,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,
Expand Down

0 comments on commit bba8b4e

Please sign in to comment.