Skip to content

Commit

Permalink
fix: prevent duplicate data (#1444)
Browse files Browse the repository at this point in the history
Signed-off-by: 张启航 <101104760+ZhangSetSail@users.noreply.github.com>
  • Loading branch information
ZhangSetSail authored Feb 22, 2024
1 parent 44f1dc3 commit e87a3fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions console/views/enterprise.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,9 @@ class HelmInstallStatus(JWTAuthApiView):
def get(self, request, *args, **kwargs):
apiHost = request.GET.get("api_host")
token = request.GET.get("token")
if region_repo.get_region_by_token(self.enterprise.enterprise_id, token):
result = general_message(200, "success", "对接成功", bean={"health_status": "installed"})
return Response(result, status=status.HTTP_200_OK)
try:
response = requests.get("http://{}:6060/helm_install/region_status/{}".format(apiHost, token), timeout=5)
data = response.json()
Expand Down

0 comments on commit e87a3fc

Please sign in to comment.