Fix duplicated words issue like "an active instance instance"

This is to fix the duplicated words issue like
"Pick up an active instance instance to migrate".

Change-Id: I74de4eb06aa1e462f0b499e3fd62a7cdc7570b31
This commit is contained in:
zhufl
2020-01-06 15:29:25 +08:00
parent 0c02b08a6a
commit db709691be
3 changed files with 3 additions and 3 deletions

View File

@@ -140,7 +140,7 @@ class UniformAirflow(base.BaseStrategy):
return used_res['vcpu'], used_res['memory'], used_res['disk']
def choose_instance_to_migrate(self, hosts):
"""Pick up an active instance instance to migrate from provided hosts
"""Pick up an active instance to migrate from provided hosts
:param hosts: the array of dict which contains node object
"""

View File

@@ -48,7 +48,7 @@ class VMWorkloadConsolidation(base.ServerConsolidationBaseStrategy):
A capacity coefficients (cc) might be used to adjust optimization
thresholds. Different resources may require different coefficient
values as well as setting up different coefficient values in both
phases may lead to to more efficient consolidation in the end.
phases may lead to more efficient consolidation in the end.
If the cc equals 1 the full resource capacity may be used, cc
values lower than 1 will lead to resource under utilization and
values higher than 1 will lead to resource overbooking.

View File

@@ -133,7 +133,7 @@ class WorkloadBalance(base.WorkloadStabilizationBaseStrategy):
cn.status in default_node_scope}
def choose_instance_to_migrate(self, hosts, avg_workload, workload_cache):
"""Pick up an active instance instance to migrate from provided hosts
"""Pick up an active instance to migrate from provided hosts
:param hosts: the array of dict which contains node object
:param avg_workload: the average workload value of all nodes