From 526998568793048d00a4caf36c3b54e942c393f9 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Mon, 15 Oct 2018 10:25:18 -0700 Subject: [PATCH] Fixes warning about session reuse. --- azure-batch/azure/batch/batch_auth.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-batch/azure/batch/batch_auth.py b/azure-batch/azure/batch/batch_auth.py index 7e5dc803fb1f..928a3c15f846 100644 --- a/azure-batch/azure/batch/batch_auth.py +++ b/azure-batch/azure/batch/batch_auth.py @@ -116,10 +116,10 @@ def __init__(self, account_name, key): super(SharedKeyCredentials, self).__init__() self.auth = SharedKeyAuth(self.header, account_name, key) - def signed_session(self): + def signed_session(self, session=None): - session = super(SharedKeyCredentials, self).signed_session() + session = super(SharedKeyCredentials, self).signed_session(session=session) session.auth = self.auth return session - \ No newline at end of file +