Skip to content

Commit

Permalink
break loop on first bitmap found
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Oct 11, 2024
1 parent 20d0320 commit 665607b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libqmpbackup/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def get_block_devices(blockinfo, argv, excluded_disks, included_disks, uuid):
for bmap in bitmaps:
if uuid in bmap["name"]:
has_bitmap = True
break
else:
if len(bitmaps) > 0:
has_bitmap = True
Expand Down

0 comments on commit 665607b

Please sign in to comment.