bundles/zfs: fix typo in check_zpool_space
This commit is contained in:
parent
9cbf866de7
commit
2027308249
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ def to_bytes(size):
|
||||||
suffixes = ['', 'K', 'M', 'G', 'T', 'P']
|
suffixes = ['', 'K', 'M', 'G', 'T', 'P']
|
||||||
number, suffix = re.match(r'([0-9\.]+)([A-Z]?)', size).groups()
|
number, suffix = re.match(r'([0-9\.]+)([A-Z]?)', size).groups()
|
||||||
if suffix not in suffixes:
|
if suffix not in suffixes:
|
||||||
print('Unexpected suffix "{}" in size "{}"'.format(suffix, size)
|
print('Unexpected suffix "{}" in size "{}"'.format(suffix, size))
|
||||||
return float(number) * 1024**suffixes.index(suffix)
|
return float(number) * 1024**suffixes.index(suffix)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue