mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 09:36:58 +02:00
fix: return early if tokenfile could not be read
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
This commit is contained in:
parent
b0c12fba72
commit
fe0e0c1250
@ -138,6 +138,7 @@ func (cli *routeGroupClient) updateToken() {
|
||||
token, err := ioutil.ReadFile(cli.tokenFile)
|
||||
if err != nil {
|
||||
log.Errorf("Failed to read token from file (%s): %v", cli.tokenFile, err)
|
||||
return
|
||||
}
|
||||
|
||||
cli.mu.Lock()
|
||||
|
Loading…
Reference in New Issue
Block a user