Skip to content

Commit

Permalink
Merge pull request #1548 from Deixx/io-class-stats-without-id
Browse files Browse the repository at this point in the history
Enable displaying IO class stats w/o IO class id
  • Loading branch information
robertbaldyga authored Oct 3, 2024
2 parents d78b9a7 + 7e2c46b commit dd0701d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/functional/api/cas/casadm.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,11 @@ def print_statistics(
filter: List[StatsFilter] = None,
output_format: OutputFormat = None,
by_id_path: bool = True,
io_class: bool = False,
shortcut: bool = False,
) -> Output:
_output_format = output_format.name if output_format else None
_io_class_id = str(io_class_id) if io_class_id is not None else None
_io_class_id = str(io_class_id) if io_class_id is not None else "" if io_class else None
_core_id = str(core_id) if core_id is not None else None
if filter is None:
_filter = filter
Expand Down
2 changes: 1 addition & 1 deletion test/functional/api/cas/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def print_statistics_cmd(
command += (" -i " if shortcut else " --cache-id ") + cache_id
if core_id:
command += (" -j " if shortcut else " --core-id ") + core_id
if io_class_id:
if io_class_id is not None: # might be empty string when printing all io classes
command += (" -d " if shortcut else " --io-class-id ") + io_class_id
if filter:
command += (" -f " if shortcut else " --filter ") + filter
Expand Down

0 comments on commit dd0701d

Please sign in to comment.