Skip to content

Commit

Permalink
Merge pull request #2763 from Uninett/bugfix/snmp-parameters-int-version
Browse files Browse the repository at this point in the history
Fix SNMP v1/v2c regression in async libraries
  • Loading branch information
lunkwill42 authored Nov 24, 2023
2 parents 921a081 + f52ca20 commit ccd4e13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/nav/ipdevpoll/snmp/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ccd4e13

Please sign in to comment.