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 lease get detail #33

Merged
merged 3 commits into from
Apr 16, 2024
Merged

Conversation

AnishReddyRavula
Copy link

@AnishReddyRavula AnishReddyRavula commented Apr 15, 2024

This commit fixes the handling of the 'detail' parameter in the Blazar client show command. Since other resources like hosts and FIPs do not have a detail keyword in their manager get method, the previous implementation caused errors.

This commit removes the unnecessary usage of 'detail' and instead calls the 'additional_details' method if the parsed args have 'detail' arg to fetch additional details

Additionally, tests are added to cover the corrected behavior of the show command with and without the 'detail' parameter.

This commit fixes the handling of the 'detail' parameter in the Blazar client show command. Since other resources like hosts and FIPs do not have a detail keyword in their manager get method, the previous implementation caused errors.

This commit removes the unnecessary usage of 'detail' and instead calls the 'additional_details' method if the parsed args have 'detail' arg to fetch additional details

Additionally, tests are added to cover the corrected behavior of the show command with and without the 'detail' parameter.
@AnishReddyRavula AnishReddyRavula self-assigned this Apr 15, 2024
@AnishReddyRavula AnishReddyRavula marked this pull request as ready for review April 15, 2024 19:35
run: pip install tox

- name: Run tests
run: tox -e ${{ env.TOX_ENV }}

Choose a reason for hiding this comment

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

thanks!

Copy link

@Mark-Powers Mark-Powers left a comment

Choose a reason for hiding this comment

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

Looks good!

@AnishReddyRavula AnishReddyRavula merged commit d335222 into chameleoncloud/xena Apr 16, 2024
2 checks passed
@AnishReddyRavula AnishReddyRavula deleted the fix-lease-get-detail branch April 16, 2024 16:22
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.

2 participants