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:
parent
5ba0f9c4e4
commit
8ba098a65a
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user