Merge "Add fix for __init__() error"
This commit is contained in:
@@ -68,12 +68,12 @@ class WorkloadBalance(base.BaseStrategy):
|
||||
|
||||
MIGRATION = "migrate"
|
||||
|
||||
def __init__(self, osc=None):
|
||||
def __init__(self, config=None, osc=None):
|
||||
"""Using live migration
|
||||
|
||||
:param osc: an OpenStackClients object
|
||||
"""
|
||||
super(WorkloadBalance, self).__init__(osc)
|
||||
super(WorkloadBalance, self).__init__(config, osc)
|
||||
# the migration plan will be triggered when the CPU utlization %
|
||||
# reaches threshold
|
||||
# TODO(Junjie): Threshold should be configurable for each audit
|
||||
|
||||
@@ -108,8 +108,8 @@ class WorkloadStabilization(base.WorkloadStabilizationBaseStrategy):
|
||||
MIGRATION = "migrate"
|
||||
MEMOIZE = _set_memoize(CONF)
|
||||
|
||||
def __init__(self, osc=None):
|
||||
super(WorkloadStabilization, self).__init__(osc)
|
||||
def __init__(self, config=None, osc=None):
|
||||
super(WorkloadStabilization, self).__init__(config, osc)
|
||||
self._ceilometer = None
|
||||
self._nova = None
|
||||
self.weights = CONF['watcher_strategies.workload_stabilization']\
|
||||
|
||||
Reference in New Issue
Block a user