This is an automated email from the ASF dual-hosted git repository.
littlecui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git
The following commit(s) were added to refs/heads/master by this push:
new 26dee27 编辑业务场景设置alias (#1088)
26dee27 is described below
commit 26dee2709700787b256c52665f33d3912c9b69ad
Author: 朱程成 <[email protected]>
AuthorDate: Wed Jul 7 17:25:04 2021 +0800
编辑业务场景设置alias (#1088)
---
server/service/gov/kie/kie_distributor.go | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/server/service/gov/kie/kie_distributor.go
b/server/service/gov/kie/kie_distributor.go
index 97b8ba7..8edf51e 100644
--- a/server/service/gov/kie/kie_distributor.go
+++ b/server/service/gov/kie/kie_distributor.go
@@ -113,7 +113,9 @@ func (d *Distributor) Update(kind, id, project string, spec
[]byte) error {
if err != nil {
return err
}
- setAliasIfEmpty(p.Spec, p.Name)
+ if kind == KindMatchGroup {
+ setAliasIfEmpty(p.Spec, p.Name)
+ }
yamlByte, err := yaml.Marshal(p.Spec)
if err != nil {
return err