diff --git a/lib/vagrant-openstack-plugin/action.rb b/lib/vagrant-openstack-plugin/action.rb index a2171c7..27ccc17 100644 --- a/lib/vagrant-openstack-plugin/action.rb +++ b/lib/vagrant-openstack-plugin/action.rb @@ -60,6 +60,20 @@ def self.action_ssh end end + def self.action_ssh_run + Vagrant::Action::Builder.new.tap do |b| + b.use ConfigValidate + b.use Call, IsCreated do |env, b2| + if !env[:result] + b2.use MessageNotCreated + next + end + + b2.use SSHRun + end + end + end + def self.action_up Vagrant::Action::Builder.new.tap do |b| b.use HandleBoxUrl