From ff9de3586a6bff5d2f716b4fbb175391ddd969fe Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 27 Apr 2014 18:28:11 -0700 Subject: [PATCH] providers/docker: run_command doesn't need to actual setup host machine --- plugins/providers/docker/action.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/providers/docker/action.rb b/plugins/providers/docker/action.rb index 7b24bb020..64f80186d 100644 --- a/plugins/providers/docker/action.rb +++ b/plugins/providers/docker/action.rb @@ -10,7 +10,12 @@ module VagrantPlugins def self.action_run_command Vagrant::Action::Builder.new.tap do |b| b.use ConfigValidate - b.use HostMachine + + b.use Call, IsState, :host_state_unknown do |env, b2| + if env[:result] + raise "Invalid usage" + end + end b.use Call, IsState, :not_created do |env, b2| if env[:result]