mirror of
https://github.com/unpoller/unpoller.git
synced 2026-10-08 15:31:38 +02:00
Update networks.go
Co-authored-by: David Newhall II <david@sleepers.pro>
This commit is contained in:
committed by
GitHub
co-authored by
David Newhall II
parent
95f017cae6
commit
23dc92dbfa
@@ -20,7 +20,11 @@ func (u *Unifi) GetNetworks(sites []*Site) ([]Network, error) {
|
||||
}
|
||||
|
||||
for _, data := range response.Data {
|
||||
network := u.parseNetwork(data, site.SiteName)
|
||||
network, err := u.parseNetwork(data, site.SiteName)
|
||||
if err != nil {
|
||||
return networks, err
|
||||
}
|
||||
|
||||
networks = append(networks, *network)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user