Skip to content

Respect --no-headers in linode type pricing tables - #951

Open
pcbeingused33 wants to merge 1 commit into
linode:mainfrom
pcbeingused33:fix/linode-types-price-headers
Open

pcbeingused33 wants to merge 1 commit into
linode:mainfrom
pcbeingused33:fix/linode-types-price-headers

Conversation

@pcbeingused33

Copy link
Copy Markdown
Contributor

📝 Description

The linodes types table 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-headers is 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 parses linodes types with and without --no-headers and 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.

@pcbeingused33
pcbeingused33 requested review from a team as code owners December 3, 2026 23:44
@pcbeingused33
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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant