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

Method _collect_hosts

compliance_report.py:107–114  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

105 return []
106
107 def _collect_hosts(self) -> List[Dict[str, Any]]:
108 if not self.db:
109 return []
110 try:
111 return self.db.get_all_hosts()
112 except Exception as exc:
113 logger.error(f"Failed to read hosts: {exc}")
114 return []
115
116 # ------------------------------------------------------------------
117 # CIS

Callers 1

build_pci_reportMethod · 0.95

Calls 2

get_all_hostsMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected