Skip to content

Commit

Permalink
[dss] Op. Intent handler: make mentioning OIR being updated optional …
Browse files Browse the repository at this point in the history
…in key parameter (#1006)
  • Loading branch information
Shastick authored Mar 14, 2024
1 parent 82f118e commit 6ab32f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/scd/operational_intents_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,8 @@ func (a *Server) PutOperationalIntentReference(ctx context.Context, manager stri
}
for _, relevantOp := range relevantOps {
_, ok := key[relevantOp.OVN]
if !ok && relevantOp.RequiresKey() {
// Note: The OIR being mutated does not need to be specified in the key:
if !ok && relevantOp.RequiresKey() && relevantOp.ID != id {
if relevantOp.Manager != dssmodels.Manager(manager) {
relevantOp.OVN = scdmodels.NoOvnPhrase
}
Expand Down

0 comments on commit 6ab32f9

Please sign in to comment.