MCPcopy Create free account
hub / github.com/saltstack/salt / progress_iter

Function progress_iter

salt/output/progress.py:33–49  ·  view source on GitHub ↗

Initialize and return a progress bar iter

(progress)

Source from the content-addressed store, hash-verified

31
32
33def progress_iter(progress):
34 """
35 Initialize and return a progress bar iter
36 """
37 widgets = [
38 progressbar.Percentage(),
39 " ",
40 progressbar.Bar(),
41 " ",
42 progressbar.Timer(),
43 " Returns: [",
44 progressbar.Counter(),
45 "/{}]".format(progress["minion_count"]),
46 ]
47 bar = progressbar.ProgressBar(widgets=widgets, maxval=progress["minion_count"])
48 bar.start()
49 return bar

Callers

nothing calls this directly

Calls 2

formatMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected