-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add module for Pure Storage FlashBlade array #45993
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
d162dba to
fd4f14b
Compare
rallytime
left a comment
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.
@sdodsley This looks great. Thanks for submitting this. I have some requested changes, mostly for getting this to match salt-style.
If you could also add some unit tests for this new module, that would be fantastic.
salt/modules/purefb.py
Outdated
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.
This should be updated to Fluorine :)
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.
I see some other references to Oxygen in this file as well, but those should all be Fluorine. If you could update those, too, that'd be great!
salt/modules/purefb.py
Outdated
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.
Can you remove these global variables here (VERSION and USER_AGENT_BASE)? I don't see these used any where in this file.
salt/modules/purefb.py
Outdated
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.
Can you expand this out to all separate lines? I know that's picky, but Salt style is to not have docs on one line like this.
salt/modules/purefb.py
Outdated
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.
Same comment here about one-line docs. Can you also change these double quotes to single quotes? Salt style calls for single quoted doc-strings, rather than double quotes.
salt/modules/purefb.py
Outdated
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.
Same comment here ;)
salt/modules/purefb.py
Outdated
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.
I think this would be a lot easier to read with .format() here.
salt/modules/purefb.py
Outdated
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.
is --> if
salt/modules/purefb.py
Outdated
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.
Nice use of __utils__ 👍
fd4f14b to
de94a24
Compare
de94a24 to
4a5718e
Compare
74a7ef8 to
333b5af
Compare
|
GO GO Jenkins! |
|
@rallytime will this do? Why are all checks failing???? |
|
Thanks for adding those tests @sdodsley! Yeah, those test failures are unrelated. We are working on getting those fixed up. However, there are some related lint failures: https://jenkins.saltstack.com/job/PR/job/salt-pr-lint-n/19496/violations/file/tests/unit/modules/test_purefb.py/ Can you fix those? |
333b5af to
b0403be
Compare
|
@rallytime fixed the lint failures. Sorry about that - they got lost in the noise of the other failures 😊 |
|
@rallytime can you force a rerun of the webpage creation for the develop execution modules documentation so this module becomes visible |
|
@sdodsley I should have caught this in the review, but you'll need to add some doc directives for sphinx to pick this up and build it automatically in the docs. Can you add a PR for this? See the examples in |
|
@rallytime PR #46590 |
What does this PR do?
Provides ability to manage filesystems and snapshots on Pure Storage FlashBlade external storage arrays
Tests written?
Yes
Commits signed with GPG?
No