dom0/utils: minor for for parse_size
This commit is contained in:
parent
262400c6d8
commit
5924d2fcc3
@ -78,7 +78,7 @@ def parse_size(size):
|
||||
|
||||
size = size.strip().upper()
|
||||
if size.isdigit():
|
||||
return size
|
||||
return int(size)
|
||||
|
||||
for unit, multiplier in units:
|
||||
if size.endswith(unit):
|
||||
|
Loading…
Reference in New Issue
Block a user