~wesley-wiedenmeier/curtin/error-output

Viewing all changes in revision 321.

support passing an integer or valid float to human2bytes

We were forcing people to pass 'size' in a config as a string.
human2bytes("100") was fine but human2bytes(100) would raise exception.

Seems to make sense for human2bytes to allow int (100) or float (100.0).
floats are allowed if int(size) == size (100.0 is ok, 100.4 is not).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: