1
0

Fix pylint invalid-overridden-method warning

"Method 'start' was expected to be 'async', found it instead as
'non-async'"

QubesOS/qubes-issues#2738
Este cometimento está contido em:
Rusty Bird 2021-02-11 11:17:43 +00:00
ascendente a7fe59449a
cometimento 0ca5e87129
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados
ID da chave GPG: 469D78F47AAF2ADF

Ver ficheiro

@ -233,8 +233,7 @@ class DispVM(qubes.vm.qubesvm.QubesVM):
yield from self.remove_from_disk()
self.app.save()
@asyncio.coroutine
def start(self, **kwargs):
async def start(self, **kwargs):
# pylint: disable=arguments-differ
try:
@ -244,10 +243,10 @@ class DispVM(qubes.vm.qubesvm.QubesVM):
'template for DispVM ({}) needs to have '
'template_for_dispvms=True'.format(self.template.name))
yield from super().start(**kwargs)
await super().start(**kwargs)
except:
# Cleanup also on failed startup
yield from self._auto_cleanup()
await self._auto_cleanup()
raise
def create_qdb_entries(self):