Skip to content

Commit

Permalink
Merge pull request #40 from JocelynBerrendonner/master
Browse files Browse the repository at this point in the history
Increasing the time we wait for VM operations to occur
  • Loading branch information
JocelynBerrendonner authored Sep 12, 2020
2 parents 528f64e + 4c20926 commit 4ea3d9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/virtualization/core/job/virtualsystemjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func WaitForJobCompletionEx(result int32, currentJob *VirtualSystemJob) error {
if result == 0 {
return nil
} else if result == 4096 {
return currentJob.WaitForAction(wmi.Wait, 100, 10)
return currentJob.WaitForAction(wmi.Wait, 100, 30)
} else {
return errors.Wrapf(errors.Failed, "Unable to Wait for Job on Result[%d] ", result)
}
Expand All @@ -207,7 +207,7 @@ func WaitForJobCompletion(instance *wmi.WmiInstance, result int32, jobType v2.Co
return err
}
defer vmjob.Close()
return vmjob.WaitForAction(wmi.Wait, 100, 10)
return vmjob.WaitForAction(wmi.Wait, 100, 30)
} else {
return errors.Wrapf(errors.Failed, "Unable to Wait for Job on Resource Pool Result[%d] JobType[%d]", result, jobType)
}
Expand Down

0 comments on commit 4ea3d9b

Please sign in to comment.