providers/docker: its okay if no image file on destroy
This commit is contained in:
parent
49693a6af7
commit
aa13a43c69
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue