Skip to content

Commit b9a54f6

Browse files
committed
address review
1 parent e180518 commit b9a54f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pymongo/auth_shared.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ def __hash__(self) -> int:
8989

9090
def _validate_canonicalize_host_name(value: str | bool) -> str | bool:
9191
valid_names = [False, True, "none", "forward", "forwardAndReverse"]
92+
if value == "none":
93+
value = False
9294
if value in ["true", "false", True, False]:
9395
return value in ["true", True]
9496

0 commit comments

Comments
 (0)