From: Terry Wilson Date: Wed, 25 Mar 2015 03:16:38 +0000 (-0500) Subject: Fix native OVSDB db_get handling for UUID columns X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=8791f8e86dad5779d62e8d9e87d42af156b18829;p=openstack-build%2Fneutron-build.git Fix native OVSDB db_get handling for UUID columns The OVS IDL python library returns Row objects for uuid-containing columns. Ensure that db_get returns UUID strings in this case. Closes-Bug: #1438751 Change-Id: Ia842a04fcad86329825d75db57680c7f23bed350 --- diff --git a/neutron/agent/ovsdb/native/commands.py b/neutron/agent/ovsdb/native/commands.py index a2ad6ca4d..b8bb1b117 100644 --- a/neutron/agent/ovsdb/native/commands.py +++ b/neutron/agent/ovsdb/native/commands.py @@ -193,7 +193,7 @@ class DbGetCommand(BaseCommand): # on set types without the list. The IDL is returning them as lists, # even if the set has the maximum number of items set to 1. Might be # able to inspect the Schema and just do this conversion for that case. - result = getattr(record, self.column) + result = idlutils.get_column_value(record, self.column) if isinstance(result, list) and len(result) == 1: self.result = result[0] else: