fix: 备份OMC配置文件导入缺少omc
This commit is contained in:
@@ -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
|
||||
}
|
||||
// 删除网元信息
|
||||
|
||||
Reference in New Issue
Block a user