diff --git a/snmp/datadog_checks/snmp/snmp.py b/snmp/datadog_checks/snmp/snmp.py index 0262a8c4b95c0..cfc3b3bee777e 100644 --- a/snmp/datadog_checks/snmp/snmp.py +++ b/snmp/datadog_checks/snmp/snmp.py @@ -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)]