Fix default values for shell provisioner config

This commit is contained in:
Mitchell Hashimoto 2013-03-17 16:18:49 -07:00
parent b4590f9184
commit 2210765412
2 changed files with 12 additions and 1 deletions

View File

@ -22,6 +22,8 @@ BUG FIXES:
- Fix bug in VirtualBox provider where port forwarding just didn't work if
you attempted to forward to a port under 1024. [GH-1421]
- Fix cross-device box adds for Windows. [GH-1424]
- Fix minor issues with defaults of configuration of the shell
provisioner.
## 1.1.0 (March 14, 2013)

View File

@ -7,7 +7,16 @@ module VagrantPlugins
attr_accessor :args
def initialize
@upload_path = "/tmp/vagrant-shell"
@args = []
@inline = UNSET_VALUE
@path = UNSET_VALUE
@upload_path = UNSET_VALUE
end
def finalize!
@inline = nil if @inline == UNSET_VALUE
@path = nil if @path == UNSET_VALUE
@upload_path = "/tmp/vagrant-shell" if @upload_path == UNSET_VALUE
end
def validate(machine)