Merge ~ltrager/maas:emulate_terminal into maas:master
Proposed by
Lee Trager
Status: | Merged |
---|---|
Approved by: | Lee Trager |
Approved revision: | ff037e0fef34d76471fbc471b1d44e95c7d39b6f |
Merge reported by: | MAAS Lander |
Merged at revision: | not available |
Proposed branch: | ~ltrager/maas:emulate_terminal |
Merge into: | maas:master |
Diff against target: |
96 lines (+59/-4) 2 files modified
src/provisioningserver/refresh/maas_api_helper.py (+41/-4) src/provisioningserver/refresh/tests/test_maas_api_helper.py (+18/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Newell Jensen (community) | Approve | ||
Review via email: mp+327927@code.launchpad.net |
Commit message
Enumate a terminal when logging script output
Some applications don't properly detect that they are not being run in a
terminal and refresh output for progress bars, counters, and spinners. These
characters quickly add up making the log difficult to read. When writing output
from an application emulate a terminal so readable data is captured.
Fixes: LP: #1705792
To post a comment you must log in.
How does this fix progress bars or spinners? Some progress bars are dots with a percentage as show in the bug, but some might use # signs etc. Additionally, spinners, when spinning will show hyphens '-' while the spinner is spinning between backslash- hyphen- forwardslash and so forth. Is this branch to fix all those possibilities or are we just doing it for the carriage return and backslash like you have in your code?