Skip to content

Commit 66b7e8d

Browse files
committed
Fix topology_description
1 parent 763e78c commit 66b7e8d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pymongo/asynchronous/mongo_client.py

+1
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,7 @@ def topology_description(self) -> TopologyDescription:
12211221
TopologySettings(),
12221222
)
12231223
self._initial_topology_id = td._topology_settings._topology_id
1224+
return td
12241225
return self._topology.description
12251226

12261227
@property

pymongo/synchronous/mongo_client.py

+1
Original file line numberDiff line numberDiff line change
@@ -1219,6 +1219,7 @@ def topology_description(self) -> TopologyDescription:
12191219
TopologySettings(),
12201220
)
12211221
self._initial_topology_id = td._topology_settings._topology_id
1222+
return td
12221223
return self._topology.description
12231224

12241225
@property

0 commit comments

Comments
 (0)