Skip to content

Commit e43cb33

Browse files
committed
cleanup
1 parent 9cec438 commit e43cb33

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

.evergreen/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ task_groups:
874874
GCPOIDC_VMNAME_PREFIX: "PYTHON_DRIVER"
875875
args:
876876
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/gcp/setup.sh
877-
teardown_group:
877+
teardown_task:
878878
- command: subprocess.exec
879879
params:
880880
binary: bash

pymongo/asynchronous/auth_oidc.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,10 @@ async def authenticate(self, conn: AsyncConnection) -> Optional[Mapping[str, Any
9999
# If it succeeded, we are done.
100100
ctx = conn.auth_ctx
101101
if ctx and ctx.speculate_succeeded():
102-
print("speculative auth succeeded")
103102
resp = ctx.speculative_authenticate
104103
if resp and resp["done"]:
105104
conn.oidc_token_gen_id = self.token_gen_id
106105
return resp
107-
elif ctx:
108-
print("speculative auth failed")
109-
else:
110-
print("no speculative auth")
111106

112107
# If spec auth failed, call the appropriate auth logic for the callback type.
113108
# We cannot assume that the token is invalid, because a proxy may have been

pymongo/synchronous/auth_oidc.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,10 @@ def authenticate(self, conn: Connection) -> Optional[Mapping[str, Any]]:
9999
# If it succeeded, we are done.
100100
ctx = conn.auth_ctx
101101
if ctx and ctx.speculate_succeeded():
102-
print("speculative auth succeeded")
103102
resp = ctx.speculative_authenticate
104103
if resp and resp["done"]:
105104
conn.oidc_token_gen_id = self.token_gen_id
106105
return resp
107-
elif ctx:
108-
print("speculative auth failed")
109-
else:
110-
print("no speculative auth")
111106

112107
# If spec auth failed, call the appropriate auth logic for the callback type.
113108
# We cannot assume that the token is invalid, because a proxy may have been

0 commit comments

Comments
 (0)