diff --git a/splunk_connect_for_snmp/__init__.py b/splunk_connect_for_snmp/__init__.py index b3b565707..7ed7024b0 100644 --- a/splunk_connect_for_snmp/__init__.py +++ b/splunk_connect_for_snmp/__init__.py @@ -16,4 +16,3 @@ __version__ = "1.0.5" - diff --git a/splunk_connect_for_snmp/enrich/tasks.py b/splunk_connect_for_snmp/enrich/tasks.py index 721b00f7b..68d0b894c 100644 --- a/splunk_connect_for_snmp/enrich/tasks.py +++ b/splunk_connect_for_snmp/enrich/tasks.py @@ -69,11 +69,11 @@ def check_restart(self, current_target, result, targets_collection, address): logger.debug(f"new_value = {new_value} old_value = {old_value}") if int(new_value) < int(old_value): task_config = { - "name": f'sc4snmp;{current_target["target"]};walk', + "name": f'sc4snmp;{address};walk', "run_immediately": True, } logger.info( - f'Detected restart of {current_target["target"]}, triggering walk' + f'Detected restart of {address}, triggering walk' ) periodic_obj = customtaskmanager.CustomPeriodicTaskManager() periodic_obj.manage_task(**task_config)