Fix k8s glue configuration might be contaminated when changed during apply

This commit is contained in:
allegroai 2023-11-01 15:03:37 +02:00
parent 46f0c991c8
commit 52405c343d

View File

@ -1113,7 +1113,7 @@ class Worker(ServiceCommandSection):
result = session.send(auth_api.LoginRequest(), headers=headers)
if not (result.ok() and result.response):
return
new_session = copy(session)
new_session = deepcopy(session)
new_session.api_client = None
new_session.set_auth_token(result.response.token)
return new_session