mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-11 13:53:35 +08:00
优化TOA相关代码
This commit is contained in:
@@ -1102,7 +1102,7 @@ func (this *NodeClusterService) FindEnabledNodeClusterConfigInfo(ctx context.Con
|
||||
|
||||
// toa
|
||||
if models.IsNotNull(cluster.Toa) {
|
||||
var toaConfig = &nodeconfigs.TOAConfig{}
|
||||
var toaConfig = nodeconfigs.NewTOAConfig()
|
||||
err = json.Unmarshal(cluster.Toa, toaConfig)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user