Skip to content

Commit 46ca82f

Browse files
committed
Fix of: test_cluster_create_with_api_objects
1 parent 7708f87 commit 46ca82f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

linode_api4/groups/lke.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def cluster_create(
122122
if node_pools is None:
123123
node_pools = []
124124

125-
if len(node_pools) == 0 and (
125+
if len([node_pools]) == 0 and (
126126
tier is None or tier.lower() != "enterprise"
127127
):
128128
raise ValueError(

test/integration/linode_client/test_linode_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def test_cluster_create_with_api_objects(test_linode_client):
331331
node_pools = client.lke.node_pool(node_type, 3)
332332
label = get_test_label()
333333

334-
cluster = client.lke.cluster_create(region, label, node_pools, version)
334+
cluster = client.lke.cluster_create(region, label, version, node_pools)
335335

336336
assert cluster.region.id == region.id
337337
assert cluster.k8s_version.id == version.id

0 commit comments

Comments
 (0)