Wait for error logs

Signed-off-by: David Gageot <david@gageot.net>
This commit is contained in:
David Gageot 2016-01-11 08:57:27 +01:00
parent 36abac3891
commit f5ba0f7420
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,8 @@ import (
"io"
"time"
"github.com/docker/machine/drivers/errdriver"
"github.com/docker/machine/libmachine/auth"
"github.com/docker/machine/libmachine/cert"
@ -132,6 +134,9 @@ func (api *Client) Create(h *host.Host) error {
log.Info("Creating machine...")
if err := api.performCreate(h); err != nil {
// Wait for all the logs to reach the client
time.Sleep(2 * time.Second)
vBoxLog := ""
if h.DriverName == "virtualbox" {
vBoxLog = filepath.Join(api.GetMachinesDir(), h.Name, h.Name, "Logs", "VBox.log")