providers/docker: its okay if no image file on destroy

This commit is contained in:
Mitchell Hashimoto 2014-04-20 08:13:59 -07:00
parent 49693a6af7
commit aa13a43c69
1 changed files with 6 additions and 2 deletions

View File

@ -29,8 +29,12 @@ module VagrantPlugins
machine.provider.driver.rmi(image) machine.provider.driver.rmi(image)
end end
if image_file if image_file && image_file.file?
image_file.delete begin
image_file.delete
rescue Errno::ENOENT
# Its okay
end
end end
@app.call(env) @app.call(env)