Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
justinc1 committed Jul 26, 2024
1 parent 4a2b339 commit 51c3304
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/module_utils/vm_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,12 @@ def __eq__(self, other: object) -> bool:

check_vm = True # it will stay True if self.vm == {}
if self.vm != {}:
vm_sorted_disks = sorted(self.vm["disks"], key=lambda disk: disk["iso_name"]) # type: ignore
other_sorted_disks = sorted(other.vm["disks"], key=lambda disk: disk["iso_name"]) # type: ignore
vm_sorted_disks = sorted(
self.vm["disks"], key=lambda disk: disk["iso_name"]
)
other_sorted_disks = sorted(
other.vm["disks"], key=lambda disk: disk["iso_name"]
)

check_vm = all(
(
Expand Down

0 comments on commit 51c3304

Please sign in to comment.