Merge remote-tracking branch 'origin/pr/249'

* origin/pr/249:
  qubes/utils: parse_size: Fix string comparison
This commit is contained in:
Marek Marczykowski-Górecki 2019-01-17 22:28:36 +01:00
commit ed6acf4a33
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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