We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baf7f3c commit 00d5680Copy full SHA for 00d5680
riocli/role/list.py
@@ -110,7 +110,17 @@ def _display_role_list(
110
if show_header:
111
headers = ["Role Name", "Description"]
112
113
- data = [[r.metadata.name, getattr(r.spec, "description", "")] for r in roles]
+ data = []
114
+ for r in roles:
115
+ description = getattr(r.spec, "description", "")
116
+
117
+ description = description.replace("\n", " ")
118
+ if len(description) > 48:
119
+ description = description[:48] + ".."
120
121
+ data.append(
122
+ [r.metadata.name, description]
123
+ )
124
125
tabulate_data(data, headers)
126
0 commit comments