vm: fix run_service error reporting

qubesadmin.exc.QubesVMError (in contrast to qubesa.exc.QubesVMError)
does not take VM instance as first argument.
这个提交包含在:
Marek Marczykowski-Górecki 2017-05-17 01:32:27 +02:00
父节点 88b559d985
当前提交 f386d45695
找不到此签名对应的密钥
GPG 密钥 ID: 063938BA42CFA724

查看文件

@ -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