mirror of
https://github.com/vale981/dirkules
synced 2025-03-05 09:21:38 -05:00
fixed a bug which caused wrong mountpoints
This commit is contained in:
parent
447ccccb30
commit
ea6e63c356
1 changed files with 4 additions and 1 deletions
|
@ -97,7 +97,10 @@ def part_for_disk(device):
|
|||
for part in parts:
|
||||
values = list()
|
||||
for start, end in zip(element_length, element_length[1:]):
|
||||
values.append(part[start:(end - 1)].strip())
|
||||
if end == element_length[-1:]:
|
||||
values.append(part[start:len(part)].strip())
|
||||
else:
|
||||
values.append(part[start:(end - 1)].strip())
|
||||
part_dict.append(dict(zip(keys, values)))
|
||||
|
||||
return part_dict
|
||||
|
|
Loading…
Add table
Reference in a new issue