From 35d92561371e4a249340493731e2936cf79739c7 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 17 Apr 2014 17:05:10 -0700 Subject: [PATCH] providers/docker: only provision if ssh (command) --- plugins/providers/docker/action.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/providers/docker/action.rb b/plugins/providers/docker/action.rb index d2e101e91..83374163b 100644 --- a/plugins/providers/docker/action.rb +++ b/plugins/providers/docker/action.rb @@ -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