From 0856b0cbbe7f2433a17132368da814d04c58faff Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Tue, 18 Apr 2023 15:31:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20k8s=20=E6=97=A0=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E7=99=BB=E5=BD=95=20(#10233)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: feng <1304903146@qq.com> --- apps/assets/utils/k8s.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/assets/utils/k8s.py b/apps/assets/utils/k8s.py index 892293f57..a281bfe80 100644 --- a/apps/assets/utils/k8s.py +++ b/apps/assets/utils/k8s.py @@ -16,7 +16,7 @@ logger = get_logger(__file__) class KubernetesClient: def __init__(self, asset, token): self.url = asset.address - self.token = token + self.token = token or '' self.server = self.get_gateway_server(asset) @property