libmachine: wait for instance start before polling SSH

Signed-off-by: Jan Broer <janeczku@yahoo.de>
This commit is contained in:
Jan Broer
2015-05-29 15:56:36 +02:00
parent ae5aeb2a67
commit c7e9dc7849

View File

@@ -120,6 +120,10 @@ func (h *Host) Create(name string) error {
// TODO: Not really a fan of just checking "none" here.
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 {
return err
}