Fix attribute reference

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
This commit is contained in:
Rafal Stefanowski 2019-12-02 14:24:12 +01:00
parent c5af20daee
commit c168244fa6

View File

@ -37,7 +37,7 @@ def parse_stats_unit(unit: str):
return parse_unit(unit) return parse_unit(unit)
def get_filter(filter: List[casadm.StatsFilter]): def get_filter(filter: List[StatsFilter]):
"""Prepare list of statistic sections which should be retrieved and parsed. """ """Prepare list of statistic sections which should be retrieved and parsed. """
if filter is None or StatsFilter.all in filter: if filter is None or StatsFilter.all in filter:
_filter = [ _filter = [
@ -55,7 +55,7 @@ def get_statistics(
cache_id: int, cache_id: int,
core_id: int = None, core_id: int = None,
io_class_id: int = None, io_class_id: int = None,
filter: List[casadm.StatsFilter] = None, filter: List[StatsFilter] = None,
percentage_val: bool = False, percentage_val: bool = False,
): ):
stats = Stats() stats = Stats()