Skip to content

Commit 57bd60d

Browse files
committed
fix id formatting
1 parent 3cee7f9 commit 57bd60d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/resources/model/system.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func FlowDispatcher(flowCr interface{}) (*CommonFlow, error) {
195195
},
196196
}
197197
}
198-
id := fmt.Sprintf("clusterflow" + ":" + f.Namespace + ":" + f.Name)
198+
id := fmt.Sprintf("clusterflow:%s:%s", f.Namespace, f.Name)
199199
flow, err := types.NewFlow(matches, id, f.Name, f.Namespace)
200200
if err != nil {
201201
return nil, err
@@ -229,7 +229,7 @@ func FlowDispatcher(flowCr interface{}) (*CommonFlow, error) {
229229
},
230230
}
231231
}
232-
id := fmt.Sprintf("flow" + ":" + f.Namespace + ":" + f.Name)
232+
id := fmt.Sprintf("flow:%s:%s", f.Namespace, f.Name)
233233
flow, err := types.NewFlow(matches, id, f.Name, f.Namespace)
234234
commonFlow.Flow = flow
235235
if err != nil {

0 commit comments

Comments
 (0)