- raise RuntimeError("Command '%s' returned non-zero exit status %d"
- % ('remctl', p.returncode))
- results = [yaml.load(o, yaml.CSafeLoader) for o in outputs]
- results = filter(lambda x: x is not None, results)
+ raise RuntimeError("remctl to host %s returned non-zero exit status %d"
+ % (s, p.returncode))
+ results = [(s, yaml.load(o, yaml.CSafeLoader)) for (s, o) in outputs]
+ results = filter(lambda (_, x): x is not None, results)