(fpath: str)
| 2149 | |
| 2150 | |
| 2151 | def _ni_save_memory(): |
| 2152 | try: |
| 2153 | tmp = _ni_store_path() + '.tmp' |
| 2154 | with open(tmp, 'w') as f: |
| 2155 | json.dump(_ni_alert_memory, f) |
| 2156 | os.replace(tmp, _ni_store_path()) |
| 2157 | except Exception as exc: |
| 2158 | logger.debug(f"[net-integrity] alert-memory save failed: {exc}") |
| 2159 | |
| 2160 | # Verdict severity. A check's verdict is CLEAN (0), a real posture/deviation finding |
no outgoing calls
no test coverage detected