Skip to content

Commit 31c5e4a

Browse files
committed
correction
Signed-off-by: Matthias Büchse <[email protected]>
1 parent 0e9f852 commit 31c5e4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/kaas/plugin/plugin_clusterstacks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ def create_cluster(self):
124124
for item in res['items']
125125
if item['spec']['clusterName'] == name
126126
]
127-
working = [item[0] for item in items if item[1] != 'provisioned']
128-
if items and not working:
127+
in_progress = [item[0] for item in items if item[1] != 'running']
128+
if items and not in_progress:
129129
break
130-
logger.debug(f'waiting 30 s for machines to become ready: {working}')
130+
logger.debug(f'waiting 30 s for machines to become ready: {in_progress}')
131131
time.sleep(30)
132132
# mimic `kubectl get secrets NAME -o=jsonpath='{.data.value}' | base64 -d > kubeconfig.yaml`
133133
res = kubernetes.client.CoreV1Api(api_client).read_namespaced_secret(secret_name, self.namespace)

0 commit comments

Comments
 (0)