Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
fix: set specific node agent to nil, not the whole map
Browse files Browse the repository at this point in the history
  • Loading branch information
eliobischof committed Aug 25, 2021
1 parent eb74ce2 commit 161b66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/operator/orbiter/takeoff.go
Expand Up @@ -209,7 +209,7 @@ func Takeoff(monitor mntr.Monitor, conf *Config, healthyChan chan bool) func() {
var deletedACurrentNodeAgent bool
for currentNA := range currentNodeAgents.Current.NA {
if _, ok := desiredNodeAgents.Spec.NodeAgents.NA[currentNA]; !ok {
currentNodeAgents.Current.NA = nil
currentNodeAgents.Current.NA[currentNA] = nil
delete(currentNodeAgents.Current.NA, currentNA)
deletedACurrentNodeAgent = true
}
Expand Down

0 comments on commit 161b66e

Please sign in to comment.