Skip to content

Commit e3ac78e

Browse files
committed
fix flake issue
Signed-off-by: Chris Snow <[email protected]>
1 parent dc7a922 commit e3ac78e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

bin/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,12 +512,14 @@ def list(
512512
self,
513513
all_columns=False,
514514
columns=["id", "name", "description", "status"],
515+
output="table",
515516
query={},
516517
):
517518
"""Print a table of K8s Clusters.
518519
519520
:param all_columns: (True/False) set to True to return all columns
520-
:param columns: (aaa) afadsfs
521+
:param output: how to display the output [text|table]
522+
:param columns: Which columns to display
521523
"""
522524
if all_columns:
523525
print(get_client().k8s_cluster.list().tabulate())

tests/library/k8s_cluster_test.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,12 @@ def test_get_k8sclusters(self, mock_get, mock_post):
213213

214214
self.assertEqual(
215215
get_client().k8s_cluster.list().tabulate(["description", "id"]),
216-
(
217-
"+-------------+-----------------------+\n" # noqa : E128
218-
"| description | id |\n"
219-
"+-------------+-----------------------+\n"
220-
"| my cluster | /api/v2/k8scluster/20 |\n"
221-
"+-------------+-----------------------+",
222-
),
223-
)
216+
"+-------------+-----------------------+\n"
217+
"| description | id |\n"
218+
"+-------------+-----------------------+\n"
219+
"| my cluster | /api/v2/k8scluster/20 |\n"
220+
"+-------------+-----------------------+",
221+
) # noqa: E131
224222

225223

226224
class TestCreateCluster(TestCase):

0 commit comments

Comments
 (0)