mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-31 01:35:56 +08:00
fix(region): private zone create status (#23521)
This commit is contained in:
@@ -47,6 +47,10 @@ func (self *DnsZoneCreateTask) taskFailed(ctx context.Context, zone *models.SDns
|
||||
func (self *DnsZoneCreateTask) OnInit(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject) {
|
||||
zone := obj.(*models.SDnsZone)
|
||||
if len(zone.ManagerId) == 0 {
|
||||
db.Update(zone, func() error {
|
||||
zone.Status = api.DNS_ZONE_STATUS_AVAILABLE
|
||||
return nil
|
||||
})
|
||||
self.taskComplete(ctx, zone)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user