Skip to content

Commit

Permalink
Merge pull request #18200 from agrare/bz_1644770_disconnect_storage_w…
Browse files Browse the repository at this point in the history
…hen_disconnecting_vms

Disconnect storage when disconnecting the VM

(cherry picked from commit 3e466eb)

https://bugzilla.redhat.com/show_bug.cgi?id=1644770
  • Loading branch information
Fryguy authored and simaishi committed Nov 30, 2018
1 parent 8dd25eb commit 952c1fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
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

0 comments on commit 952c1fc

Please sign in to comment.