CA-271863: Can not automatically resolve autostart-enabled VM in RPU.

This commit is contained in:
Michael Zhao 2017-12-06 15:57:07 +08:00
parent a2d9993d08
commit 1cf6b55368

View File

@ -30,6 +30,7 @@
*/
using System;
using System.Threading;
using XenAdmin.Actions;
using XenAdmin.Core;
using XenAdmin.Diagnostics.Checks;
@ -95,7 +96,12 @@ namespace XenAdmin.Diagnostics.Problems.VMProblem
{
vm.Locked = false;
}
int wait = 1000; // wait up to 1 second for the cache to be updated
while (wait > 0 && vm.GetAutoPowerOn() != autostartValue)
{
Thread.Sleep(100);
wait -= 100;
}
};
}