-
Notifications
You must be signed in to change notification settings - Fork 1
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
Extra features setup json #73
Conversation
jeroenmaelbrancke
commented
Feb 2, 2018
- mds_safety
- volumedriver config
helpers/storagedriver.py
Outdated
import json | ||
|
||
try: | ||
from ovs.extensions.services.service import ServiceManager |
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.
The current master branch points towards FWK 2.11
No need to have this try-except stuff
setup/vpool.py
Outdated
|
||
# Settings volumedriver | ||
storagedriver_config = {} | ||
if vpool_details.get('storagedriver').get('volume_manager') is not None: |
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.
If storagedriver would be filled in, I'd opt to validate the possible options (see how we validate the call params)
So something like:
storagedriver_config = vpool_details.get('storagedriver')
if storagedriver_config (not None or empty dict) -> validate this item before proceeding
@JeffreyDevloo can review my changes? |
Extra features setup json (cherry picked from commit 0f6561f) # Conflicts: # helpers/storagedriver.py # setup/vpool.py
Merge pull request #73 from openvstorage/extra_features_setup_json