Skip to content

Convert volume module to REST 2 and add fleet support #691

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
Jan 31, 2025

Conversation

sdodsley
Copy link
Member

SUMMARY

Convert volume module to use REST v2 and add support for fleets by using the new context parameter.

ISSUE TYPE
  • Feature Pull Request
  • REST 2 Pull Request
COMPONENT NAME

purefa_volume.py

@sdodsley sdodsley added enhancement New feature or request REST v2 labels Jan 14, 2025
@sdodsley sdodsley force-pushed the vol_v2 branch 2 times, most recently from 28076df to 28447eb Compare January 14, 2025 19:43
@sdodsley sdodsley force-pushed the vol_v2 branch 6 times, most recently from 22cace9 to 8d2deea Compare January 17, 2025 19:55
@sdodsley sdodsley marked this pull request as ready for review January 17, 2025 22:15
@sdodsley sdodsley force-pushed the vol_v2 branch 2 times, most recently from 323d000 to e329e02 Compare January 20, 2025 18:44
@sdodsley sdodsley self-assigned this Jan 20, 2025
Copy link
Contributor

@skeerthivasan skeerthivasan left a comment

Choose a reason for hiding this comment

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

Multiple fixes were needed to test, please address them

@sdodsley sdodsley force-pushed the vol_v2 branch 3 times, most recently from ab49a32 to 1f6d2dd Compare January 29, 2025 16:11
@sdodsley sdodsley force-pushed the vol_v2 branch 2 times, most recently from eca7479 to 2436aed Compare January 30, 2025 14:26
else:
res = arrayv6.post_volumes(
res = array.post_volumes(
Copy link
Contributor

Choose a reason for hiding this comment

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

Still we need IF block here - if LooseVersion(CONTEXT_API_VERSION) <= LooseVersion(api_version)
Outer loop is DEFAULT_API_VERSION, this else loop is nested one, without this cloning for fleet array with context is not working.

Copy link
Contributor

@skeerthivasan skeerthivasan left a comment

Choose a reason for hiding this comment

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

Good to merge, it works fine

@sdodsley sdodsley merged commit fa9f5cc into Pure-Storage-Ansible:master Jan 31, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request REST v2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants