From: Nikos Skalkotos Date: Tue, 24 Apr 2012 14:40:46 +0000 (+0300) Subject: Unify the output of progress bars X-Git-Tag: v0.1~100 X-Git-Url: https://code.grnet.gr/git/snf-image-creator/commitdiff_plain/3a5454e8e87fb67db96aafc9b14f10c971e4cca1 Unify the output of progress bars --- diff --git a/image_creator/kamaki_wrapper.py b/image_creator/kamaki_wrapper.py index ffe0158..e3c249e 100644 --- a/image_creator/kamaki_wrapper.py +++ b/image_creator/kamaki_wrapper.py @@ -53,6 +53,10 @@ def progress(message): progressbar = Bar(msg.ljust(MSG_LENGTH)) progressbar.max = n + progressbar.fill = '#' + progressbar.bar_prefix = ' [' + progressbar.bar_suffix = '] ' + for _ in range(n): yield progressbar.next()