mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #961 in YUNIONIO/onecloud from ~QIUJIAN/onecloud:hotfix/qj-put-disabled-zone-enabled to release/2.5.0
* commit '36ca973f1a1b39b57c45253c945260dd3f2927ae': mark zone as enabled at initlization
This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
ZONE_INIT = "init"
|
||||
ZONE_ENABLE = "enable"
|
||||
ZONE_DISABLE = "disable"
|
||||
ZONE_SOLDOUT = "soldout"
|
||||
@@ -469,7 +470,7 @@ func (manager *SZoneManager) InitializeData() error {
|
||||
return nil
|
||||
})
|
||||
}
|
||||
if z.Status == "init" {
|
||||
if z.Status == ZONE_INIT || z.Status == ZONE_DISABLE {
|
||||
manager.TableSpec().Update(&z, func() error {
|
||||
z.Status = ZONE_ENABLE
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user