Skip to content

Commit

Permalink
Better error handling if meraki org cannot list networks inside (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
i3149 authored Dec 4, 2023
1 parent 0cbf1ab commit 80333c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/inputs/snmp/x/meraki/meraki.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ func NewMerakiClient(jchfChan chan []*kt.JCHF, gconf *kt.SnmpGlobalConfig, conf
netSet := map[string]networkDesc{}
numAdded, err := c.getOrgNetworks(netSet, "", lorg, nets, 0)
if err != nil {
return nil, err
c.log.Warnf("Skipping organization %s because it does not have permission to list networks.", org.Name)
continue
}
numNets += numAdded

Expand Down

0 comments on commit 80333c4

Please sign in to comment.