
Theo pushed to branch main at Root / CLI / Netboxadm Commits: bd6e6c6d by Theo at 2025-08-04T09:36:51-03:00 fix: prevent infinite recursion uppon interface unmarshall - - - - - 1 changed file: - internal/models/interface.go Changes: ===================================== internal/models/interface.go ===================================== @@ -103,13 +103,15 @@ func (i *Interface) UnmarshalJSON(data []byte) error { i.DeviceType = ObjectTypeVM } - var alias Interface + type interfaceAlias Interface + + var alias interfaceAlias if err := json.Unmarshal(data, &alias); err != nil { return fmt.Errorf("error unmarshalling interface fields: %w", err) } - *i = alias + *i = Interface(alias) // need to restore if parentProbe.Device != nil { View it on GitLab: https://gitlab.c3sl.ufpr.br/root/cli/netboxadm/-/commit/bd6e6c6d0bcb9a5392c2... -- View it on GitLab: https://gitlab.c3sl.ufpr.br/root/cli/netboxadm/-/commit/bd6e6c6d0bcb9a5392c2... You're receiving this email because of your account on gitlab.c3sl.ufpr.br.