Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/molecule/console.py: Don't always set output wrapping #2993

Closed
wants to merge 1 commit into from

Commits on Nov 23, 2020

  1. src/molecule/console.py: Don't always set output wrapping

    The output soft wrapping with python enrich is enabled for all
    terminals. This means that lines are wrapped to 80 when molecule
    is run from tox or when a module ends importing this console module.
    In the later case, this will wrap its output to 80 columns and
    possibly break it, since the output won't be valid JSON as found in
    ansible-community/molecule-vagrant#84.
    
    As a possible solution, enable the soft wrapping on the same condition
    as for the force_terminal terminal.
    
    Signed-off-by: Arnaud Patard <apatard@hupstream.com>
    apatard committed Nov 23, 2020
    Configuration menu
    Copy the full SHA
    5902f78 View commit details
    Browse the repository at this point in the history