Skip to content

Commit

Permalink
Merge pull request #236 from dave-tucker/fix-server
Browse files Browse the repository at this point in the history
server: Fix diff of non-normalized fields
  • Loading branch information
dave-tucker authored Oct 5, 2021
2 parents 927d6f7 + 6ccd5cb commit 90df648
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/transact.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,13 @@ func (o *OvsdbServer) Update(database, table string, where []ovsdb.Condition, ro
if err != nil {
panic(err)
}
rowDelta[column] = diff(oldValue, value)
// convert the native to an ovs value
// since the value in the RowUpdate hasn't been normalized
newValue, err := ovsdb.NativeToOvs(colSchema, native)
if err != nil {
panic(err)
}
rowDelta[column] = diff(oldValue, newValue)
}

newRow, err := m.NewRow(table, new)
Expand Down

0 comments on commit 90df648

Please sign in to comment.