mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-24 21:25:52 -05:00
fix: ignore emptyPolicy errors for db insertion
This commit is contained in:
parent
209d003832
commit
16f9691e80
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user