Skip to content

Commit 8fb22a1

Browse files
committed
Move sleep
1 parent a7d7d64 commit 8fb22a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

provider-kubeconfig.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,10 @@ def _extract_kubeconfig(self, sa, namespace, filename, serverip="", kubecfg="",
358358
parts = line.split(":", 1)
359359
if len(parts) == 2 and parts[0].strip() == "token":
360360
token = parts[1].strip()
361-
if token != "":
362-
token_found = True
363-
else:
364-
time.sleep(2)
361+
if token != "":
362+
token_found = True
363+
else:
364+
time.sleep(2)
365365

366366
out, _ = run_command(" kubectl get secret " + sa + " -n " + namespace + " -o json " + kubecfg)
367367
json_out = json.loads(out or "{}")

0 commit comments

Comments
 (0)