Dont check for poweron command error to force retry at state check (#3195)

This commit is contained in:
Dan Tran 2016-08-19 04:21:50 -07:00 committed by Rickard von Essen
parent 6ce847e720
commit 4ac6e2a08c
1 changed files with 2 additions and 4 deletions

View File

@ -65,10 +65,8 @@ func (d *ESX5Driver) ReloadVM() error {
func (d *ESX5Driver) Start(vmxPathLocal string, headless bool) error {
for i := 0; i < 20; i++ {
err := d.sh("vim-cmd", "vmsvc/power.on", d.vmId)
if err != nil {
return err
}
//intentionally not checking for error since poweron may fail specially after initial VM registration
d.sh("vim-cmd", "vmsvc/power.on", d.vmId)
time.Sleep((time.Duration(i) * time.Second) + 1)
running, err := d.IsRunning(vmxPathLocal)
if err != nil {