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

Disconnect storage when disconnecting the VM #18200

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions app/models/ems_event/automate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ def src_vm_destroy_all_snapshots
call("src_vm", "snapshots.destroy_all")
end

def src_vm_disconnect_storage
call("src_vm", "disconnect_storage")
end

private

def parse_policy_parameters(target_str, policy_event, param)
Expand Down
2 changes: 1 addition & 1 deletion app/models/vm_or_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ def disconnect_inv
end

disconnect_host

disconnect_storage
disconnect_stack if respond_to?(:orchestration_stack)
end

Expand Down