providers/docker: don't show cmd if one is not specified

This commit is contained in:
Mitchell Hashimoto 2014-04-27 19:06:39 -07:00
parent 685bdbf1f0
commit a2b4f31916
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ module VagrantPlugins
env[:ui].output(I18n.t("docker_provider.creating")) env[:ui].output(I18n.t("docker_provider.creating"))
env[:ui].detail(" Name: #{params[:name]}") env[:ui].detail(" Name: #{params[:name]}")
env[:ui].detail(" Image: #{params[:image]}") env[:ui].detail(" Image: #{params[:image]}")
if params[:cmd] if params[:cmd] && !params[:cmd].empty?
env[:ui].detail(" Cmd: #{params[:cmd].join(" ")}") env[:ui].detail(" Cmd: #{params[:cmd].join(" ")}")
end end
params[:volumes].each do |volume| params[:volumes].each do |volume|