Skip to content
Snippets Groups Projects

Rework LSO interaction

Merged Karel van Klink requested to merge feature/skip-empty-inventory into develop
All threads resolved!
@@ -166,7 +166,7 @@ def _inventory_is_set(state: State) -> bool:
raise ProcessFailureError(msg, details="Key 'inventory' not found in state.")
if "all" not in state["inventory"] or "hosts" not in state["inventory"]["all"]:
msg = "Malformed Ansible inventory found in state."
raise ProcessFailureError(msg, details=state)
raise ProcessFailureError(msg, details="Ansible inventory must be in YAML form, not string.")
return state["inventory"]["all"]["hosts"]
Loading