style: 网元公共文件para5G路径变更

This commit is contained in:
TsMask
2024-04-25 14:25:11 +08:00
parent 965bb899ac
commit d4f2cdb1be

View File

@@ -491,7 +491,7 @@ func (r *NeInfoImpl) NeConfigFileWirte(neInfo model.NeInfo, filePath, fileType s
// 返回 string map[string]any
func (r *NeInfoImpl) NeConfPara5GRead(fileType string) any {
// 网管本地路径
omcFilePath := "/usr/local/omc/etc/para5G.yaml"
omcFilePath := "/usr/local/etc/omc/para5G.yaml"
if runtime.GOOS == "windows" {
omcFilePath = fmt.Sprintf("C:%s", omcFilePath)
}
@@ -517,7 +517,7 @@ func (r *NeInfoImpl) NeConfPara5GRead(fileType string) any {
// NeConfPara5GWirte 网元公共配置文件写入 content内容 syncNE同步到网元端NeType@NeId
func (r *NeInfoImpl) NeConfPara5GWirte(fileType string, content any, syncNE []string) error {
// 网管本地路径
omcFilePath := "/usr/local/omc/etc/para5G.yaml"
omcFilePath := "/usr/local/etc/omc/para5G.yaml"
if runtime.GOOS == "windows" {
omcFilePath = fmt.Sprintf("C:%s", omcFilePath)
}