provisioners/shell: array args properly work

This commit is contained in:
Mitchell Hashimoto 2013-12-06 11:28:32 -08:00
parent 47b99d9bb8
commit 38f931ba93
1 changed files with 2 additions and 2 deletions

View File

@ -8,9 +8,9 @@ module VagrantPlugins
class Provisioner < Vagrant.plugin("2", :provisioner)
def provision
args = ""
if args.is_a?(String)
if config.args.is_a?(String)
args = " #{config.args}"
elsif args.is_a?(Array)
elsif config.args.is_a?(Array)
args = config.args.map { |a| quote_and_escape(a) }
args = " #{args.join(" ")}"
end