Repository navigation
Respect --no-headers in linode type pricing tables - #951
Open
pcbeingused33 wants to merge 1 commit into
Open
pcbeingused33 wants to merge 1 commit into
pcbeingused33 wants to merge 1 commit into
Conversation
pcbeingused33
requested review from
ezilber-akamai and
psnoch-akamai
and removed request for
a team
December 3, 2026 23:44
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
The
linodes typestable override creates its own Rich tables for base and regional pricing. Both use Rich's default header setting, so they still display headers when--no-headersis set.Pass the output handler's header setting to both tables. The default output continues to display headers, and both modes retain the base and regional price values.
✔️ How to Test
Run
LINODE_CLI_TEST_MODE=1 XDG_CONFIG_HOME=$(mktemp -d) python -m pytest -q tests/unit/test_overrides.py. The parametrized test parseslinodes typeswith and without--no-headersand renders a simulated response with base and regional prices. Before the fix, the case with the flag fails because both sets of price headers are present. With the fix, all three tests pass.An AI coding assistant was used to prepare and test this change.