Skip to content

Commit

Permalink
Fix npe in tagsyncer (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 authored Jun 26, 2023
1 parent 817ee67 commit b16da33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controllers/housekeeping/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ func (h *Housekeeper) getMachineTags(nodes []v1.Node) (map[string][]string, erro

machineTags := make(map[string][]string)
for _, m := range machines {
if m.Allocation == nil {
continue
}
hostname := *m.Allocation.Hostname
machineTags[hostname] = m.Tags
}
Expand Down

0 comments on commit b16da33

Please sign in to comment.