X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/blobdiff_plain/6b1b5bd49f47baa4a4d9be443fd78752beeec978..6c27d7937d0d2c6cc778f02b05abbbe286b01633:/python/remote/bcast.py?ds=sidebyside diff --git a/python/remote/bcast.py b/python/remote/bcast.py index ca69818..4544af7 100644 --- a/python/remote/bcast.py +++ b/python/remote/bcast.py @@ -17,6 +17,6 @@ def bcast(cmd, hosts = [h.hostname for h in config.hosts]): if outputs[s][1].startswith('remctl: cannot connect to %s' % s): del outputs[s] else: - raise RuntimeError("remctl to host %s returned non-zero exit status %d" - % (s, p.returncode)) - return [(s, yaml.load(o[1], yaml.CSafeLoader)) for (s, o) in outputs.iteritems()] + raise RuntimeError("remctl to host %s returned non-zero exit status %d; stderr:\n%s" + % (s, p.returncode, outputs[s][1])) + return [(s, yaml.load(o[0], yaml.CSafeLoader)) for (s, o) in outputs.iteritems()]