fix: 备份OMC配置文件导入缺少omc

This commit is contained in:
TsMask
2025-10-14 11:18:29 +08:00
parent 42137f253a
commit c1ba1d47ba

View File

@@ -89,7 +89,7 @@ func (r Backup) FTPPushFile(localFilePath, tag string) error {
return nil
}
// BackupOMCImport 网元配置文件复制到网元端覆盖
// BackupOMCImport 备份OMC 配置文件导入
func (r Backup) BackupOMCImport(localZipFile string) error {
neInfoService := neService.NewNeInfo
neVersionService := neService.NewNeVersion
@@ -148,7 +148,7 @@ func (r Backup) BackupOMCImport(localZipFile string) error {
}
// 新增网元信息
for _, neInfo := range neInfos {
if neInfo.NeId == "" || neInfo.NeType == "OMC" {
if neInfo.NeId == "" {
continue
}
// 删除网元信息