vagrant-smartos / vagrant-smartos-zones

Manage SmartOS local zones in Vagrant
MIT License
54 stars 9 forks source link

`vagrant global-zone ssh` raises when vm is not running #22

Open sax opened 9 years ago

sax commented 9 years ago

We don't check whether the VM is running before executing global-zone ssh. This could be fixed by mirroring the internals of Vagrant. Right now we run the ssh command inline in the global-zone command file. The code can move out into an action that runs checks before executing ssh.

https://github.com/mitchellh/vagrant/blob/master/plugins/providers/virtualbox/action.rb#L222-L230