Skip to content

Commit

Permalink
Stop ctxt processes before destroying VMs
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Oct 3, 2018
1 parent 17ecf0a commit 3e9ef23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions IM/InfrastructureManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,8 @@ def DestroyInfrastructure(inf_id, auth):

sel_inf = InfrastructureManager.get_infrastructure(inf_id, auth)
delete_list = list(reversed(sel_inf.get_vm_list()))
# First stop ctxt processes
sel_inf.stop()
# Destroy the Infrastructure
sel_inf.destroy(auth, delete_list)
# Set the Infrastructure as deleted
Expand Down

0 comments on commit 3e9ef23

Please sign in to comment.