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:
Marek Marczykowski-Górecki 2017-05-17 01:32:27 +02:00
parent 88b559d985
commit f386d45695
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

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