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

Function _cleanup

lynis_parser.py:11–16  ·  view source on GitHub ↗

Normalize placeholder values that Lynis uses for empty fields.

(value: str)

Source from the content-addressed store, hash-verified

9
10
11def _cleanup(value: str) -> str:
12 """Normalize placeholder values that Lynis uses for empty fields."""
13 if value is None:
14 return ""
15 stripped = value.strip()
16 return "" if stripped in PLACEHOLDER_VALUES else stripped
17
18
19def _split_pipe_payload(payload: str) -> Dict[str, str]:

Callers 2

_split_pipe_payloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected