Skip to content

Disable output formatting with --no-ansi #318

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

Merged
merged 1 commit into from
Apr 15, 2025

Conversation

cidrblock
Copy link
Collaborator

As a result of a random test failure locally due to output formatting, it was found that --no-ansi still did some indenting of output.

This makes the output very basic when either --no-ansi or NO_COLOR is used.

Before:

   Debug: Checking dependencies for ansible.posix.
   Debug: Collection ansible.posix has no dependencies.
   Debug: Checking dependencies for ansible.scm.
   Debug: Collection ansible.scm requires ansible.utils >=3.0.0 and ansible.utils 5.1.2 is installed.
   Debug: Checking dependencies for ansible.utils.
   Debug: Collection ansible.utils has no dependencies.
    Note: All dependant collections are installed.
    Info: Checking system packages.
   Debug: Running command: /home/bthornto/github/ansible-dev-environment/.venv/bin/python3 -m bindep -b -f
          /home/bthornto/github/ansible-dev-environment/.venv/.ansible-dev-environment/discovered_bindep.txt

After:

Debug: Collection ansible.posix has no dependencies.
Debug: Checking dependencies for ansible.scm.
Debug: Collection ansible.scm requires ansible.utils >=3.0.0 and ansible.utils 5.1.2 is installed.
Debug: Checking dependencies for ansible.utils.
Debug: Collection ansible.utils has no dependencies.
Note: All dependant collections are installed.
Info: Checking system packages.
Debug: Running command: /home/bthornto/github/ansible-dev-environment/.venv/bin/python3 -m bindep -b -f /home/bthornto/github/ansible-dev-environment/.venv/.ansible-dev-environment/discovered_bindep.txt

@cidrblock cidrblock requested a review from a team as a code owner April 15, 2025 15:18
@cidrblock cidrblock added the bug Something isn't working label Apr 15, 2025
@cidrblock cidrblock requested review from a team and ssbarnea and removed request for a team April 15, 2025 15:19
@cidrblock cidrblock merged commit 64d265e into ansible:main Apr 15, 2025
18 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants