diff --git a/python/nav/ipdevpoll/snmp/common.py b/python/nav/ipdevpoll/snmp/common.py index baf0b62cd6..795d399519 100644 --- a/python/nav/ipdevpoll/snmp/common.py +++ b/python/nav/ipdevpoll/snmp/common.py @@ -209,6 +209,8 @@ def factory( kwargs_out.update( {k: v for k, v in profile.configuration.items() if hasattr(cls, k)} ) + # Sometimes profiles store the version number as a string + kwargs_out["version"] = int(kwargs_out["version"]) else: _logger.debug("%r has no snmp profile", netbox) return None