Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Commit

Permalink
add casting for variable in a single get scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
omrozowicz-splunk committed Aug 10, 2021
1 parent ed9a596 commit da1dea2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion splunk_connect_for_snmp_poller/manager/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ def snmp_polling(
# Perform SNNP GET for an oid
else:
logger.info(f"Executing SNMP GET for {host} profile={profile}")
snmp_get_handler(*static_parameters, profile)
prepared_profile = [ObjectType(ObjectIdentity(profile))]
snmp_get_handler(*static_parameters, prepared_profile)

return f"Executing SNMP Polling for {host} version={version} profile={profile}"
except Exception as e:
Expand Down

0 comments on commit da1dea2

Please sign in to comment.