Schedule findings for resolution check
(self, network_id: str)
| 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""" |
no test coverage detected