Merge pull request #1268 from janeczku/waitforssh

Check that instance has started before polling SSH
This commit is contained in:
Evan Hazlett 2015-06-02 10:31:01 -04:00
commit a879b39902
1 changed files with 4 additions and 0 deletions

View File

@ -120,6 +120,10 @@ func (h *Host) Create(name string) error {
// TODO: Not really a fan of just checking "none" here. // TODO: Not really a fan of just checking "none" here.
if h.Driver.DriverName() != "none" { if h.Driver.DriverName() != "none" {
if err := utils.WaitFor(drivers.MachineInState(h.Driver, state.Running)); err != nil {
return err
}
if err := WaitForSSH(h); err != nil { if err := WaitForSSH(h); err != nil {
return err return err
} }