diff options
author | Radostin Stoyanov <rstoyanov1@gmail.com> | 2017-07-18 10:12:49 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cbosdonnat@suse.com> | 2017-07-18 17:43:14 +0200 |
commit | 5afb6c9b0728c7f5f0edd14a44e62ae91959194d (patch) | |
tree | f0dc835822f0d06f0af9aca66ecdf7e28f0250e9 /src/virtBootstrap/progress.py | |
parent | 5a0068ff2a9460b2fb872a5722eb61d508869e9e (diff) | |
download | virt-bootstrap.git-5afb6c9b0728c7f5f0edd14a44e62ae91959194d.tar.gz virt-bootstrap.git-5afb6c9b0728c7f5f0edd14a44e62ae91959194d.tar.xz virt-bootstrap.git-5afb6c9b0728c7f5f0edd14a44e62ae91959194d.zip |
utils: size_to_bytes convert from int
When converting 0 KB with string input the result will be string
with zeroes.
>>> print(size_to_bytes('0', 'KB'))
000000...
Instead convert the string input to integer and then perform the conversion.
Rename the variable from "string" to "number" to avoid confusion.
Diffstat (limited to 'src/virtBootstrap/progress.py')
0 files changed, 0 insertions, 0 deletions