From 8ba098a65acafe4ffde1b51f97f7b6a1b45e6d99 Mon Sep 17 00:00:00 2001 From: Dan Wendlandt Date: Sun, 16 Sep 2012 23:48:19 -0700 Subject: [PATCH] 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 --- quantum/agent/linux/ovs_lib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/quantum/agent/linux/ovs_lib.py b/quantum/agent/linux/ovs_lib.py index 064454491..9eaa67e30 100644 --- a/quantum/agent/linux/ovs_lib.py +++ b/quantum/agent/linux/ovs_lib.py @@ -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]) -- 2.45.2