diff --git a/plugins/module_utils/vm_snapshot.py b/plugins/module_utils/vm_snapshot.py index 0f855840..d17f58de 100644 --- a/plugins/module_utils/vm_snapshot.py +++ b/plugins/module_utils/vm_snapshot.py @@ -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( (