Fix pylint invalid-overridden-method warning
"Method 'start' was expected to be 'async', found it instead as 'non-async'" QubesOS/qubes-issues#2738
This commit is contained in:
parent
a7fe59449a
commit
0ca5e87129
@ -233,8 +233,7 @@ class DispVM(qubes.vm.qubesvm.QubesVM):
|
|||||||
yield from self.remove_from_disk()
|
yield from self.remove_from_disk()
|
||||||
self.app.save()
|
self.app.save()
|
||||||
|
|
||||||
@asyncio.coroutine
|
async def start(self, **kwargs):
|
||||||
def start(self, **kwargs):
|
|
||||||
# pylint: disable=arguments-differ
|
# pylint: disable=arguments-differ
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -244,10 +243,10 @@ class DispVM(qubes.vm.qubesvm.QubesVM):
|
|||||||
'template for DispVM ({}) needs to have '
|
'template for DispVM ({}) needs to have '
|
||||||
'template_for_dispvms=True'.format(self.template.name))
|
'template_for_dispvms=True'.format(self.template.name))
|
||||||
|
|
||||||
yield from super().start(**kwargs)
|
await super().start(**kwargs)
|
||||||
except:
|
except:
|
||||||
# Cleanup also on failed startup
|
# Cleanup also on failed startup
|
||||||
yield from self._auto_cleanup()
|
await self._auto_cleanup()
|
||||||
raise
|
raise
|
||||||
|
|
||||||
def create_qdb_entries(self):
|
def create_qdb_entries(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user