Merge "Append detailed printing information when exec_sudo fails"

This commit is contained in:
Zuul 2023-08-31 04:38:24 +00:00 committed by Gerrit Code Review
commit 2193c7c348

View File

@ -136,7 +136,7 @@ def exec_sudo(cmd):
proc.wait()
if proc.returncode:
e = BlockDeviceSetupException("exec_sudo failed")
e = BlockDeviceSetupException("exec_sudo failed: %s" % out)
e.returncode = proc.returncode
e.cmd = ' '.join(sudo_cmd)
e.output = out