vm: fix run_service error reporting
qubesadmin.exc.QubesVMError (in contrast to qubesa.exc.QubesVMError) does not take VM instance as first argument.
这个提交包含在:
父节点
88b559d985
当前提交
f386d45695
@ -248,9 +248,9 @@ class QubesVM(qubesadmin.base.PropertyHolder):
|
||||
stdouterr = p.communicate(input=input)
|
||||
|
||||
if p.returncode:
|
||||
raise qubesadmin.exc.QubesVMError(self,
|
||||
'service {!r} failed with retcode {!r}; '
|
||||
'stdout={!r} stderr={!r}'.format(
|
||||
raise qubesadmin.exc.QubesVMError(
|
||||
'VM {}: service {!r} failed with retcode {!r}; '
|
||||
'stdout={!r} stderr={!r}'.format(self,
|
||||
service, p.returncode, *stdouterr))
|
||||
|
||||
return stdouterr
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户