Skip to content

Commit

Permalink
fix: ignore emptyPolicy errors for db insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
restanrm committed May 13, 2022
1 parent 209d003 commit 16f9691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ func (h *Headscale) UpdateMachine(machine *Machine) error {
// SetTags takes a Machine struct pointer and update the forced tags.
func (h *Headscale) SetTags(machine *Machine, tags []string) error {
machine.ForcedTags = tags
if err := h.UpdateACLRules(); err != nil {
if err := h.UpdateACLRules(); !errors.Is(err, errEmptyPolicy) {
return err
}
h.setLastStateChangeToNow(machine.Namespace.Name)
Expand Down

0 comments on commit 16f9691

Please sign in to comment.