Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions qui/updater/summary_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,12 @@
self.err += vm.name + " cannot shutdown: " + str(err) + "\n"
self.log.error("Cannot shutdown %s because %s", vm.name, str(err))
self.status = RestartStatus.ERROR_TMPL_DOWN

loop = asyncio.get_event_loop()
try:
loop = asyncio.get_event_loop()
except RuntimeError:

Check warning on line 323 in qui/updater/summary_page.py

View check run for this annotation

Codecov / codecov/patch

qui/updater/summary_page.py#L323

Added line #L323 was not covered by tests
# changes between GLib versions and python versions mean that the above
# can fail on some dom0/gui domain configurations
loop = asyncio.new_event_loop()

Check warning on line 326 in qui/updater/summary_page.py

View check run for this annotation

Codecov / codecov/patch

qui/updater/summary_page.py#L326

Added line #L326 was not covered by tests
loop.run_until_complete(wait_for_domain_shutdown(wait_for))

return wait_for
Expand Down