providers/docker: only provision if ssh (command)

This commit is contained in:
Mitchell Hashimoto 2014-04-17 17:05:10 -07:00
parent 81818f36fc
commit 35d9256137
1 changed files with 9 additions and 1 deletions

View File

@ -31,7 +31,15 @@ module VagrantPlugins
next
end
b3.use Provision
b3.use Call, HasSSH do |env3, b4|
if env3[:result]
b4.use Provision
else
b4.use Message,
I18n.t("docker_provider.messages.provision_no_ssh"),
post: true
end
end
end
end
end