| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Remove traling space which occurs when the number is
smaller than kibibyte.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
rename the function to match its counterpart size_to_bytes().
|
|
Add new module to collect utility functions used in virt-bootstrap.
Move the function definitions from "sources" and "virt_bootstrap" to
the new module.
|