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)
|
||||
end
|
||||
|
||||
if image_file
|
||||
image_file.delete
|
||||
if image_file && image_file.file?
|
||||
begin
|
||||
image_file.delete
|
||||
rescue Errno::ENOENT
|
||||
# Its okay
|
||||
end
|
||||
end
|
||||
|
||||
@app.call(env)
|
||||
|
|
Loading…
Reference in New Issue