Fixes hosts top optimize.
This commit is contained in:
parent
39b0ea381b
commit
aa117a0ee3
@ -265,6 +265,7 @@ class Plan {
|
|||||||
|
|
||||||
// No ressource's utilization problem.
|
// No ressource's utilization problem.
|
||||||
if (toOptimize.length === 0) {
|
if (toOptimize.length === 0) {
|
||||||
|
debug('No hosts to optimize.')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -379,7 +380,8 @@ class PerformancePlan extends Plan {
|
|||||||
async execute () {
|
async execute () {
|
||||||
const data = await this._findHostsToOptimize()
|
const data = await this._findHostsToOptimize()
|
||||||
|
|
||||||
if (!hosts) {
|
if (!data) {
|
||||||
|
debug('No hosts to optimize.')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user