gogoair / lavatory

Tooling to define repository specific retention policies in Artifactory.
Apache License 2.0
21 stars 14 forks source link

Output error when unit has comma separator. #28

Closed bazimov closed 6 years ago

bazimov commented 6 years ago

When parsing size comma causing an issue. We might need to remove commas or convert the size to whole number.

get_performance_report
    old_space = parse_size(old_info['usedSpace'])
  File "/tmp/workspace/artifactory-retention-policies-lab/venv/lib/python3.6/site-packages/humanfriendly/__init__.py", line 234, in parse_size
    raise InvalidSize(format(msg, size, tokens))
humanfriendly.InvalidSize: Failed to parse size! (input '1,021.11 GB' was tokenized as [1, ',', 21.11, 'GB'])