summaryrefslogtreecommitdiff
path: root/robusta_krr
diff options
context:
space:
mode:
authorNatan Yellin <aantn@users.noreply.github.com>2024-03-28 13:15:23 +0200
committerGitHub <noreply@github.com>2024-03-28 13:15:23 +0200
commit94707a40f575c2ef5bfede83437c69b4d9dbce23 (patch)
treec72ec19f06bca49dc671ea412a515caf84975eab /robusta_krr
parent6058075e6a95516942085172787e4abcfdc99413 (diff)
parentd3d964ab66a6f67b87286e8a40c176a948d1fb85 (diff)
Merge pull request #246 from robusta-dev/show_cluster_name_flag
Fix --show-cluster-name flag
Diffstat (limited to 'robusta_krr')
-rw-r--r--robusta_krr/formatters/table.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/robusta_krr/formatters/table.py b/robusta_krr/formatters/table.py
index 2cd8bbb..3d20b8e 100644
--- a/robusta_krr/formatters/table.py
+++ b/robusta_krr/formatters/table.py
@@ -110,7 +110,7 @@ def table(result: Result) -> Table:
full_info_row = j == 0
cells: list[Any] = [f"[{item.severity.color}]{i + 1}.[/{item.severity.color}]"]
- if cluster_count > 1:
+ if cluster_count > 1 or settings.show_cluster_name:
cells.append(item.object.cluster if full_info_row else "")
cells += [
item.object.namespace if full_info_row else "",