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 for issue #513 #581

Merged
merged 2 commits into from
Apr 16, 2019
Merged

Fix for issue #513 #581

merged 2 commits into from
Apr 16, 2019

Conversation

imran-ansari
Copy link
Collaborator

-Added rollback for merge to undo changes when mount fails
-Added validation check for fsOwner
-Fixed PEP8 issue

-Added rollback to mount flow for any cleanup in case of any failure
-Added validation for fsOwner
undo_action['undo_func'](**undo_action['params'])
params = undo_action['params']
if type(params) is dict:
undo_action['undo_func'](**undo_action['params'])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any specific reason to identify the data type of the params and call the undo functions differently.. I'm asking due to the previous code does'nt have this kind of check ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

i got the answer. Tuple is passed explicitly in undo_steps.append(..'params')

undo_steps.append(
                    {'undo_func': driver.terminate_connection,
                     'params': (vol, connector_info, is_snap),

@wdurairaj wdurairaj merged commit 827c8d1 into hpe-storage:plugin_v2 Apr 16, 2019
@imran-ansari imran-ansari deleted the bug_fixes branch May 27, 2019 13:01
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