Require tempfile in shell provisioner
This commit is contained in:
parent
67aa4c3819
commit
396beb9faf
|
@ -1,3 +1,5 @@
|
||||||
|
require 'tempfile'
|
||||||
|
|
||||||
module Vagrant
|
module Vagrant
|
||||||
module Provisioners
|
module Provisioners
|
||||||
class Shell < Base
|
class Shell < Base
|
||||||
|
@ -15,8 +17,6 @@ module Vagrant
|
||||||
end
|
end
|
||||||
|
|
||||||
def validate(env, errors)
|
def validate(env, errors)
|
||||||
super
|
|
||||||
|
|
||||||
# Validate that the parameters are properly set
|
# Validate that the parameters are properly set
|
||||||
if path && inline
|
if path && inline
|
||||||
errors.add(I18n.t("vagrant.provisioners.shell.path_and_inline_set"))
|
errors.add(I18n.t("vagrant.provisioners.shell.path_and_inline_set"))
|
||||||
|
|
Loading…
Reference in New Issue