Merge pull request #16935 from ComradeProgrammer/fix_docker_env

fix: clearing .ssh/known_hosts in cleanup of test environment
pull/16987/head
Medya Ghazizadeh 2023-08-02 11:46:39 -07:00 committed by GitHub
commit e6894e3f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,10 @@ function cleanup() {
fi
fi
sudo killall --user "${user}" minikube >/dev/null 2>&1 || true
# clear the known_host file (~/.ssh/known_hosts)
if test -f /home/${user}/.ssh/known_hosts; then
sudo echo "" > /home/${user}/.ssh/known_hosts
fi
done
# clean docker left overs
echo -e "\ncleanup docker..."