Skip to content

Commit

Permalink
Merge pull request #300 from swordqiu/automated-cherry-pick-of-#299-u…
Browse files Browse the repository at this point in the history
…pstream-release-3.12

Automated cherry pick of #299: fix: keep update host config
  • Loading branch information
swordqiu authored Sep 21, 2024
2 parents 9c8dcc2 + a4c7774 commit 367f6ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/agent/utils/hostlocal.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ func FetchHostLocal(hl *HostLocal, watcher IServerWatcher) *HostLocal {
hostLocalMap.Store(hl.Bridge, hl)
return hl
} else {
return uhl.(*HostLocal)
// find, to update fields
nhl := uhl.(*HostLocal)
nhl.HostConfig = hl.HostConfig
return nhl
}
}

Expand Down

0 comments on commit 367f6ac

Please sign in to comment.