Fix argument bug in networks.go

This commit is contained in:
Andrew Regner 2020-10-08 17:59:23 -07:00
parent 9674b1a85d
commit e88c293e1c
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ func (u *Unifi) GetNetworks(sites []*Site) ([]Network, error) {
// parseNetwork parses the raw JSON from the Unifi Controller into network structures.
func (u *Unifi) parseNetwork(data json.RawMessage, siteName string) (*Network, error) {
network := new(Network)
return network, u.unmarshalDevice(data, network)
return network, u.unmarshalDevice(siteName, data, network)
}
// Network is metadata about a network managed by a UniFi controller