MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / schedule_resolution_check

Method schedule_resolution_check

network_intelligence.py:219–236  ·  view source on GitHub ↗

Schedule findings for resolution check

(self, network_id: str)

Source from the content-addressed store, hash-verified

217 self.logger.error(f"Error handling network change: {e}")
218
219 def schedule_resolution_check(self, network_id: str):
220 """Schedule findings for resolution check"""
221 try:
222 # Move active findings to pending resolution
223 if network_id in self.active_vulnerabilities:
224 for vuln_id, vuln_data in self.active_vulnerabilities[network_id].items():
225 vuln_data['pending_resolution'] = True
226 vuln_data['resolution_scheduled'] = datetime.now().isoformat()
227
228 if network_id in self.active_credentials:
229 for cred_id, cred_data in self.active_credentials[network_id].items():
230 cred_data['pending_resolution'] = True
231 cred_data['resolution_scheduled'] = datetime.now().isoformat()
232
233 self.save_intelligence_data()
234
235 except Exception as e:
236 self.logger.error(f"Error scheduling resolution check: {e}")
237
238 def update_network_profile(self, network_id: str):
239 """Update network profile information"""

Callers 1

handle_network_changeMethod · 0.95

Calls 3

errorMethod · 0.80
itemsMethod · 0.45

Tested by

no test coverage detected