2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

python: ovsdb-idl: Handle inserts w/o changes.

If a table's schema allows no columns to be set when inserting,
python-ovs should handle that case.

Signed-off-by: Terry Wilson <twilson@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
Terry Wilson
2025-02-27 11:23:48 -06:00
committed by Ilya Maximets
parent 7b4d3137a1
commit 5ee2a38928
4 changed files with 14 additions and 1 deletions

View File

@@ -1856,7 +1856,7 @@ class Transaction(object):
else:
# Let ovsdb-server decide whether to really delete it.
pass
elif row._changes:
else:
op = {"table": row._table.name}
if row._data is None:
op["op"] = "insert"