Skip to content

Commit

Permalink
[ingester] fix get node name failed
Browse files Browse the repository at this point in the history
  • Loading branch information
lzf575 committed Jan 12, 2024
1 parent d3a4949 commit 1ec398f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/ingester/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ func (c *Config) Validate() error {
}
c.NodeIP = nodeIP
}

myNodeName, exist := os.LookupEnv(EnvK8sNodeName)
var exist bool
myNodeName, exist = os.LookupEnv(EnvK8sNodeName)
if !exist {
log.Errorf("Can't get node name env %s", EnvK8sNodeName)
sleepAndExit()
Expand Down

0 comments on commit 1ec398f

Please sign in to comment.