From 9a75130576b5bd42921ed2c54f00e89bf96e771a Mon Sep 17 00:00:00 2001 From: Andriy Kokhan Date: Wed, 1 Nov 2023 11:59:09 +0200 Subject: [PATCH] Fixed flush_fdb_entries() for Thrift RPC (#226) Signed-off-by: Andriy Kokhan --- common/sai_client/sai_thrift_client/sai_thrift_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/sai_client/sai_thrift_client/sai_thrift_client.py b/common/sai_client/sai_thrift_client/sai_thrift_client.py index a8de33ac..014d2688 100644 --- a/common/sai_client/sai_thrift_client/sai_thrift_client.py +++ b/common/sai_client/sai_thrift_client/sai_thrift_client.py @@ -235,7 +235,7 @@ def cleanup(self): def flush_fdb_entries(self, obj, attrs=None): obj_type, _, _ = self.obj_to_items(obj) - attr_kwargs = dict(ThriftConverter.convert_attributes_to_thrift(attrs)) + attr_kwargs = dict(ThriftConverter.convert_attributes_to_thrift(attrs)) if attrs else {} result = sai_adapter.sai_thrift_flush_fdb_entries(self.thrift_client, **attr_kwargs) def bulk_create(self, obj_type, keys, attrs, obj_count=0, do_assert=True):