Skip to content

Commit

Permalink
fix: Default cluster cannot be deleted after migration (#1591)
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Zhang <[email protected]>
  • Loading branch information
zzzhangqi authored Dec 31, 2024
1 parent c0e4306 commit 4d26d56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion console/services/region_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json
import logging
import base64
import os
import subprocess

import yaml
Expand Down Expand Up @@ -558,7 +559,7 @@ def __init_region_resource_data(self, region, level="open"):
region_resource["region_type"] = (json.loads(region.region_type) if region.region_type else [])
region_resource["enterprise_id"] = region.enterprise_id
region_resource["url"] = region.url
region_resource["scope"] = region.scope
region_resource["scope"] = os.getenv("IS_STANDALONE", region.scope)
region_resource["provider"] = region.provider
region_resource["provider_cluster_id"] = region.provider_cluster_id
if level == "open":
Expand Down

0 comments on commit 4d26d56

Please sign in to comment.