Skip to content

Commit

Permalink
fix: update region show log (#1607)
Browse files Browse the repository at this point in the history
Signed-off-by: 张启航 <[email protected]>
  • Loading branch information
ZhangSetSail authored Jan 15, 2025
1 parent 5c0c05b commit 7809927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions console/views/rke2.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def post(self, request):
return Response(result, status=400)
else:
# 处理其他类型的 IntegrityError
return self.handle_exception(e, "Failed to get cluster", "获取集群失败")
return self.handle_exception(e, "Failed to get cluster", "创建集群失败: {}".format(e))
except Exception as e:
return self.handle_exception(e, "Failed to get cluster", "获取集群失败")
return self.handle_exception(e, "Failed to get cluster", "创建集群失败: {}".format(e))

# put 接口用于更新集群的配置文件,脚本执行完成后调用。
def put(self, request):
Expand Down

0 comments on commit 7809927

Please sign in to comment.