ovs-lib: make db_get_map return empty dict on error

bug 1050504

this fixes a crash caused when we try to iterate over the return value
of db_get_map

Change-Id: I56640035c3e166ddcc3d23e76be9118604dbeadc
This commit is contained in:
Dan Wendlandt 2012-09-16 23:48:19 -07:00
parent 5ba0f9c4e4
commit 8ba098a65a

View File

@ -179,6 +179,7 @@ class OVSBridge:
if output:
str = output.rstrip("\n\r")
return self.db_str_to_map(str)
return {}
def db_get_val(self, table, record, column):
output = self.run_vsctl(["get", table, record, column])