bundles/zfs: fix typo in check_zpool_space

This commit is contained in:
Franzi 2021-04-03 09:41:17 +02:00
parent 9cbf866de7
commit 2027308249
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -10,7 +10,7 @@ def to_bytes(size):
suffixes = ['', 'K', 'M', 'G', 'T', 'P']
number, suffix = re.match(r'([0-9\.]+)([A-Z]?)', size).groups()
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)