Skip to content

Commit

Permalink
Merge pull request #759 from grycap/devel
Browse files Browse the repository at this point in the history
Fix #758
  • Loading branch information
micafer authored Jan 16, 2019
2 parents dc3e152 + 51d9aa7 commit 4f10380
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion IM/VirtualMachine.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,12 @@ def check_ctxt_process(self):

initial_count_out = self.cont_out
wait = 0
while self.ctxt_pid and not self.destroy:
while self.ctxt_pid:
if self.destroy:
# If the VM has been destroyed set pid to None and return
self.ctxt_pid = None
return None

ctxt_pid = self.ctxt_pid
if ctxt_pid != self.WAIT_TO_PID:
ssh = self.get_ssh_ansible_master()
Expand Down

0 comments on commit 4f10380

Please sign in to comment.