vm: fix run_service error reporting
qubesadmin.exc.QubesVMError (in contrast to qubesa.exc.QubesVMError) does not take VM instance as first argument.
This commit is contained in:
parent
88b559d985
commit
f386d45695
@ -248,9 +248,9 @@ class QubesVM(qubesadmin.base.PropertyHolder):
|
|||||||
stdouterr = p.communicate(input=input)
|
stdouterr = p.communicate(input=input)
|
||||||
|
|
||||||
if p.returncode:
|
if p.returncode:
|
||||||
raise qubesadmin.exc.QubesVMError(self,
|
raise qubesadmin.exc.QubesVMError(
|
||||||
'service {!r} failed with retcode {!r}; '
|
'VM {}: service {!r} failed with retcode {!r}; '
|
||||||
'stdout={!r} stderr={!r}'.format(
|
'stdout={!r} stderr={!r}'.format(self,
|
||||||
service, p.returncode, *stdouterr))
|
service, p.returncode, *stdouterr))
|
||||||
|
|
||||||
return stdouterr
|
return stdouterr
|
||||||
|
Loading…
Reference in New Issue
Block a user