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

Commit

Permalink
fix: removal of unsafe eval call
Browse files Browse the repository at this point in the history
  • Loading branch information
weliasz committed Oct 18, 2021
1 parent 15158e8 commit e6d2cc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions splunk_connect_for_snmp_poller/manager/task_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,11 +620,11 @@ def _sort_walk_data(
"""
if is_metric:
merged_result_metric.append(varbind)
merged_result.append(eval(varbind))
merged_result.append(json.loads(varbind))
else:
merged_result_non_metric.append(varbind)
result = eval(varbind)
merged_result.append(eval(result["metric"]))
result = json.loads(varbind)
merged_result.append(json.loads(result["metric"]))


def _return_mib_enricher_for_walk(
Expand Down

0 comments on commit e6d2cc4

Please sign in to comment.