Fix formatting glitches after conversion to await

QubesOS/qubes-issues#2738
This commit is contained in:
Rusty Bird 2021-02-11 11:17:40 +00:00
parent d3d6b9de2b
commit 7a91af9b2c
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF
2 changed files with 4 additions and 6 deletions

View File

@ -280,9 +280,7 @@ class AdminVM(qubes.vm.BaseVM):
'name',
self.name,
])
return (await asyncio.create_subprocess_exec(
*cmd,
**kwargs))
return await asyncio.create_subprocess_exec(*cmd, **kwargs)
async def run_service_for_stdio(self, *args, input=None, **kwargs):
'''Run a service, pass an optional input and return (stdout, stderr).

View File

@ -1464,12 +1464,12 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
await self.fire_event_async('domain-cmd-pre-run', pre_event=True,
start_guid=gui)
return (await asyncio.create_subprocess_exec(
return await asyncio.create_subprocess_exec(
qubes.config.system_path['qrexec_client_path'],
'-d', str(self.name),
*(('-t', '-T') if filter_esc else ()),
'{}:QUBESRPC {} {}'.format(user, service, source),
**kwargs))
**kwargs)
async def run_service_for_stdio(self, *args, input=None, **kwargs):
"""Run a service, pass an optional input and return (stdout, stderr).