The root cause exception contains the useful information about what failed during loading. Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx> --- guests/lcitool | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/guests/lcitool b/guests/lcitool index 759eff6..4fb0008 100755 --- a/guests/lcitool +++ b/guests/lcitool @@ -202,8 +202,9 @@ class Inventory: try: self._facts[host] = self._read_all_facts(host) self._facts[host]["inventory_hostname"] = host - except Exception: - raise Error("Can't load facts for '{}'".format(host)) + except Exception as ex: + raise Error("Can't load facts for '%(host)s': %(ex)s" % + { "host": host, "ex": ex}) @staticmethod def _add_facts_from_file(facts, yaml_path): -- 2.20.1 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list