Skip to content

Commit

Permalink
Remove VM from obsolete_vms list if template is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
alimirjamali committed Jul 1, 2024
1 parent 867b26d commit 25f1be1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qui/tray/updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ def domain_removed(self, _submitter, _event, vm, *_args, **_kwargs):
if vm in self.vms_needing_update:
self.vms_needing_update.remove(vm)
self.update_indicator_state()
if vm.name in self.obsolete_vms:
self.obsolete_vms.remove(vm.name)
self.update_indicator_state()

def feature_unset(self, vm, event, feature, **_kwargs):
# pylint: disable=unused-argument
Expand Down

0 comments on commit 25f1be1

Please sign in to comment.