mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
parent
03c6397266
commit
7ea2ae04ef
@ -316,7 +316,14 @@ void Host::update_wilds()
|
||||
|
||||
void Host::enable()
|
||||
{
|
||||
state = INIT;
|
||||
if (state == DISABLED && host_share.get_total_cpu() > 0)
|
||||
{
|
||||
state = MONITORED;
|
||||
}
|
||||
else
|
||||
{
|
||||
state = INIT;
|
||||
}
|
||||
};
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
Loading…
x
Reference in New Issue
Block a user