Skip to content

Commit 9a75130

Browse files
Fixed flush_fdb_entries() for Thrift RPC (#226)
Signed-off-by: Andriy Kokhan <[email protected]>
1 parent 5d228e4 commit 9a75130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/sai_client/sai_thrift_client/sai_thrift_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def cleanup(self):
235235

236236
def flush_fdb_entries(self, obj, attrs=None):
237237
obj_type, _, _ = self.obj_to_items(obj)
238-
attr_kwargs = dict(ThriftConverter.convert_attributes_to_thrift(attrs))
238+
attr_kwargs = dict(ThriftConverter.convert_attributes_to_thrift(attrs)) if attrs else {}
239239
result = sai_adapter.sai_thrift_flush_fdb_entries(self.thrift_client, **attr_kwargs)
240240

241241
def bulk_create(self, obj_type, keys, attrs, obj_count=0, do_assert=True):

0 commit comments

Comments
 (0)