ovsdb-data: Simplify converting an OVSDB datum to JSON by reordering logic.
authorBen Pfaff <blp@nicira.com>
Mon, 22 Aug 2011 21:52:21 +0000 (14:52 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 24 Aug 2011 18:57:42 +0000 (11:57 -0700)
commit6a6f8d167357a1f1751cdd54b9491c531a371ae1
tree82da21a7e944dd96fd397e17f20e3a2ff2e8ce32
parent0233401f12fe5ef8f9d63d660d2bd3f739766025
ovsdb-data: Simplify converting an OVSDB datum to JSON by reordering logic.

Putting the "map" case first avoids duplicate tests.

Suggested-by: Reid Price <reid@nicira.com>
lib/ovsdb-data.c
python/ovs/db/data.py