Tweaked partitions usage in blockdevice

This commit is contained in:
Anton Hvornum 2021-11-11 14:30:52 +00:00
parent c2bfc4e340
commit e0782f234b
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ class BlockDevice:
count = 0
while count < 5:
for partition_uuid, partition in self.partitions.items():
if partition_uuid == uuid:
if partition.uuid == uuid:
return partition
else:
log(f"uuid {uuid} not found. Waiting for {count +1} time",level=logging.DEBUG)