mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 05:06:14 +09:00
1 parent
03c6397266
commit
7ea2ae04ef
1 file changed
+8
-1
+8
-1
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
Reference in new issue
Block a user