func (d *Driver) Restart() error {
	if err := d.Stop(); err != nil {
		return fmt.Errorf("Problem stopping the VM: %s", err)
	}

	if err := d.Start(); err != nil {
		return fmt.Errorf("Problem starting the VM: %s", err)
	}

	d.IPAddress = ""

	return d.ipWaiter.Wait(d)
}
func (d *Driver) Restart() error {
	if err := d.Stop(); err != nil {
		return fmt.Errorf("Problem stopping the VM: %s", err)
	}

	if err := d.Start(); err != nil {
		return fmt.Errorf("Problem starting the VM: %s", err)
	}

	d.IPAddress = ""

	return d.ipWaiter.Wait(d)
}
func ( d * Driver ) Restart ( ) error { if err := d . Stop ( ) ; err != nil { return fmt . Errorf ( " " , err ) } if err := d . Start ( ) ; err != nil { return fmt . Errorf ( " " , err ) } d . IPAddress = " " return d . ipWaiter . Wait ( d ) }
// Restart restarts a machine which is known to be running.
Restart restarts a machine which is known to be running .