mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
CA-271863: Can not automatically resolve autostart-enabled VM in RPU.
This commit is contained in:
parent
a2d9993d08
commit
1cf6b55368
@ -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;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user