mirror of
https://opendev.org/openstack/python-openstackclient.git
synced 2026-01-17 07:20:45 +00:00
Remove methods argument from FakeHypervisorStats
methods argument is not necessary in FakeHypervisorStats class. Remove it. Change-Id: I288f71b412beb3e583e957a9fd99210bc6f3f543
This commit is contained in:
parent
52a12e743e
commit
df3ee61be3
1 changed files with 1 additions and 2 deletions
|
|
@ -284,7 +284,7 @@ class FakeHypervisorStats(object):
|
|||
"""Fake one or more hypervisor stats."""
|
||||
|
||||
@staticmethod
|
||||
def create_one_hypervisor_stats(attrs={}, methods={}):
|
||||
def create_one_hypervisor_stats(attrs={}):
|
||||
"""Create a fake hypervisor stats.
|
||||
|
||||
:param Dictionary attrs:
|
||||
|
|
@ -311,7 +311,6 @@ class FakeHypervisorStats(object):
|
|||
|
||||
# Set default method.
|
||||
hypervisor_stats_method = {'to_dict': stats_info}
|
||||
hypervisor_stats_method.update(methods)
|
||||
|
||||
hypervisor_stats = fakes.FakeResource(
|
||||
info=copy.deepcopy(stats_info),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue