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

fix: Resolve help page error for list commands with non-standard names #588

Merged

Conversation

lgarber-akamai
Copy link
Contributor

@lgarber-akamai lgarber-akamai commented Mar 12, 2024

📝 Description

This change resolves an error that would occur when attempting to view the help page for certain commands with non-standard action names (e.g. domains records-list --help). This issue occurred because the branch condition for list commands explicitly checked for an action with the name list which isn't met by some list commands, leading to this code path being run and raising an error.

Resolves #581

✔️ How to Test

The following test steps assume you have pulled down this PR locally and run make install.

Integration Testing

make INTEGRATION_TEST_PATH=domains/test_domain_records.py testint

Manual Testing

  1. Run the following command:
linode-cli domains records-list --help
  1. Ensure the help page prints as expected with no errors.

@lgarber-akamai lgarber-akamai requested a review from a team as a code owner March 12, 2024 17:36
@lgarber-akamai lgarber-akamai requested review from ykim-akamai and yec-akamai and removed request for a team March 12, 2024 17:36
@lgarber-akamai lgarber-akamai added the bugfix for any bug fixes in the changelog. label Mar 12, 2024
Copy link
Contributor

@yec-akamai yec-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Works well on my end 👍

Copy link
Member

@zliang-akamai zliang-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified that the bug is fixed by this PR. Nice work!

@lgarber-akamai lgarber-akamai merged commit 5866451 into linode:dev Mar 14, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix for any bug fixes in the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Crash when running linode-cli domains records-list --help
3 participants