-
Notifications
You must be signed in to change notification settings - Fork 27
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
Conversation
28076df
to
28447eb
Compare
22cace9
to
8d2deea
Compare
323d000
to
e329e02
Compare
There was a problem hiding this 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
ab49a32
to
1f6d2dd
Compare
eca7479
to
2436aed
Compare
plugins/modules/purefa_volume.py
Outdated
else: | ||
res = arrayv6.post_volumes( | ||
res = array.post_volumes( |
There was a problem hiding this comment.
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.
There was a problem hiding this 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
SUMMARY
Convert volume module to use REST v2 and add support for fleets by using the new
context
parameter.ISSUE TYPE
COMPONENT NAME
purefa_volume.py