Close the tempfile for shell provisioner [GH-1040]
This commit is contained in:
parent
883efcf282
commit
2b4920b4b6
|
@ -54,6 +54,7 @@ module VagrantPlugins
|
||||||
begin
|
begin
|
||||||
file.write(config.inline)
|
file.write(config.inline)
|
||||||
file.fsync
|
file.fsync
|
||||||
|
file.close
|
||||||
yield file.path
|
yield file.path
|
||||||
ensure
|
ensure
|
||||||
file.close
|
file.close
|
||||||
|
|
Loading…
Reference in New Issue