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

Commit

Permalink
fix: Missing f in format string
Browse files Browse the repository at this point in the history
  • Loading branch information
Addon Factory template committed Apr 30, 2021
1 parent bed859d commit f6818c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splunk_connect_for_snmp_poller/manager/task_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_translated_string(mib_server_url, varBinds):
# Prefix the metric for ux in analytics workspace
# Splunk uses . rather than :: for hierarchy.
# if the metric name contains a . replace with _
"metric_name": 'sc4snmp.{name.prettyPrint().replace(".","_").replace("::", ".")}',
"metric_name": f'sc4snmp.{name.prettyPrint().replace(".","_").replace("::", ".")}',
"_value": val.prettyPrint(),
}
result = json.dumps(result)
Expand Down

0 comments on commit f6818c3

Please sign in to comment.