Skip to content

Commit

Permalink
Fix VM de-initiliazation (#15265)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qubad786 authored Dec 24, 2024
1 parent 07ef975 commit 33831a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middlewared/middlewared/plugins/vm/lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ async def start_on_boot(self):
@private
async def deinitialize_vms(self, options):
await self.middleware.call('vm.close_libvirt_connection')
if options['reload_ui']:
if options.get('reload_ui'):
await self.middleware.call('service.reload', 'http')
if options['stop_libvirt']:
if options.get('stop_libvirt'):
await self.middleware.call('service.stop', 'libvirtd')

@private
Expand Down

0 comments on commit 33831a9

Please sign in to comment.