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

Function get_credentials

webapp_modern.py:6291–6299  ·  view source on GitHub ↗

Get discovered credentials

()

Source from the content-addressed store, hash-verified

6289def _unit_name(service_name: str) -> str:
6290 unit = service_name.strip()
6291 if unit.endswith('.service'):
6292 unit = unit[:-8]
6293 return unit or service_name
6294
6295
6296def _format_service_failure_message(service_name: str) -> str:
6297 unit = _unit_name(service_name)
6298 readable = unit.replace('_', ' ').replace('-', ' ').title()
6299 return f"Failed to start {readable} service. Review journalctl -u {unit} -f for details."
6300
6301
6302def _wait_for_service_active(service_name: str, timeout: int = 30, poll_interval: int = 1) -> tuple[bool, str]:

Callers 1

legacy_credentialsFunction · 0.85

Calls 3

get_all_credentialsMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected