Run oc logout in background to avoid timeout

This commit is contained in:
Robert Schmidt
2022-09-06 09:40:17 +02:00
parent 11d24ff42c
commit c1fb4b6c27
+2 -1
View File
@@ -384,7 +384,8 @@ class Cluster:
mySSH.command('for pod in $(oc get pods | tail -n +2 | awk \'{print $1}\'); do oc delete pod ${pod}; done', '\$', 60)
mySSH.command('oc logout', '\$', 30)
# logout will return eventually, but we don't care when -> start in background
mySSH.command('oc logout &', '\$', 5)
mySSH.close()
# Analyze the logs