Merge "Remove methods argument from FakeHypervisorStats"
This commit is contained in:
commit
8eade18624
@ -284,7 +284,7 @@ class FakeHypervisorStats(object):
|
|||||||
"""Fake one or more hypervisor stats."""
|
"""Fake one or more hypervisor stats."""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def create_one_hypervisor_stats(attrs={}, methods={}):
|
def create_one_hypervisor_stats(attrs={}):
|
||||||
"""Create a fake hypervisor stats.
|
"""Create a fake hypervisor stats.
|
||||||
|
|
||||||
:param Dictionary attrs:
|
:param Dictionary attrs:
|
||||||
@ -311,7 +311,6 @@ class FakeHypervisorStats(object):
|
|||||||
|
|
||||||
# Set default method.
|
# Set default method.
|
||||||
hypervisor_stats_method = {'to_dict': stats_info}
|
hypervisor_stats_method = {'to_dict': stats_info}
|
||||||
hypervisor_stats_method.update(methods)
|
|
||||||
|
|
||||||
hypervisor_stats = fakes.FakeResource(
|
hypervisor_stats = fakes.FakeResource(
|
||||||
info=copy.deepcopy(stats_info),
|
info=copy.deepcopy(stats_info),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user