Skip to content

Commit

Permalink
Fix metric length checking (#1509)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmuesch authored and masci committed May 7, 2018
1 parent 90880c9 commit c7c9898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snmp/datadog_checks/snmp/snmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def _check(self, instance):

cmd_generator, ip_address, tags, metrics, timeout, retries, enforce_constraints = self._load_conf(instance)

if len(metrics) < 1:
if not metrics:
raise Exception('Metrics list must contain at least one metric')

tags += ['snmp_device:{0}'.format(ip_address)]
Expand Down

0 comments on commit c7c9898

Please sign in to comment.