Merge remote-tracking branch 'origin/pr/249'
* origin/pr/249: qubes/utils: parse_size: Fix string comparison
This commit is contained in:
commit
ed6acf4a33
@ -100,7 +100,7 @@ def parse_size(size):
|
||||
return int(size)
|
||||
|
||||
for unit, multiplier in units:
|
||||
if size.endswith(unit):
|
||||
if size.endswith(unit.upper()):
|
||||
size = size[:-len(unit)].strip()
|
||||
return int(size) * multiplier
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user