From 41de457889a33e8c7238937209a359fb1f84bee2 Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Mon, 18 Mar 2013 12:44:26 +0100 Subject: [PATCH] Use UNSET_VALUE for @args in shell config since [] is truthy. --- plugins/provisioners/shell/config.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/provisioners/shell/config.rb b/plugins/provisioners/shell/config.rb index 400921690..c44c8f72a 100644 --- a/plugins/provisioners/shell/config.rb +++ b/plugins/provisioners/shell/config.rb @@ -7,13 +7,14 @@ module VagrantPlugins attr_accessor :args def initialize - @args = [] + @args = UNSET_VALUE @inline = UNSET_VALUE @path = UNSET_VALUE @upload_path = UNSET_VALUE end def finalize! + @args = nil if @args == UNSET_VALUE @inline = nil if @inline == UNSET_VALUE @path = nil if @path == UNSET_VALUE @upload_path = "/tmp/vagrant-shell" if @upload_path == UNSET_VALUE