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:
committed by
Ilya Maximets
parent
7b4d3137a1
commit
5ee2a38928
@@ -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"
|
||||
|
Reference in New Issue
Block a user