diff options
author | Radostin Stoyanov <rstoyanov1@gmail.com> | 2017-07-04 16:24:23 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cbosdonnat@suse.com> | 2017-07-05 13:29:45 +0200 |
commit | b8b69f2f41802bf87e119845a6f532d4970d2481 (patch) | |
tree | eb1cf2d3ccb436379c069ae311e7f575efeeeb3f /src/virtBootstrap/utils.py | |
parent | 9d1bc151c7eb72c1281d6a22476a9082fef8374e (diff) | |
download | virt-bootstrap.git-b8b69f2f41802bf87e119845a6f532d4970d2481.tar.gz virt-bootstrap.git-b8b69f2f41802bf87e119845a6f532d4970d2481.tar.xz virt-bootstrap.git-b8b69f2f41802bf87e119845a6f532d4970d2481.zip |
Add new module to store the progress
This module is used to store the progress of the bootstrap process and
could be used by other applications to get status of virt-bootstrap as
well as percentage of completion.
Convert some info messages to use this new system for a clean reporting
in client applications.
Example usage:
import virtBootstrap
def show_progress(data):
print("Status: %s, Progress: %.2f"
% (data['status'], data['value']))
virtBootstrap.bootstrap(uri='docker://ubuntu', dest="/tmp/test1",
progress_cb=show_progress)
Diffstat (limited to 'src/virtBootstrap/utils.py')
0 files changed, 0 insertions, 0 deletions