Skip to content

Commit

Permalink
Fix OSError if mech destroy #57
Browse files Browse the repository at this point in the history
  • Loading branch information
Takashi Ando committed May 4, 2019
1 parent ae5b012 commit 221a745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mech/mech.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ def destroy(self, arguments):
vmrun.stop(mode='hard', quiet=True)
time.sleep(3)
vmrun.deleteVM()
shutil.rmtree(mech_path)
shutil.rmtree(mech_path, True, lambda: logger.debug("{} was not found.".format(mech_path)))
else:
puts_err(colored.red("Deletion aborted"))
else:
Expand Down

0 comments on commit 221a745

Please sign in to comment.