LivyClient not honouring verify=False passed to requests_session
ashokkumarrathore opened this issue · comments
ashokkumarrathore commented
When custom requests.Session is passed to LivySession.create(), it does not honour 'Verify'.
Code sample:
r_session = requests.Session()
r_session.verify=False
livy_session = LivySession.create(
LIVY_URL,
requests_session=r_session,
kind=SessionKind.SQL)
This ignores verify=False set in requests session and will go ahead with default(Verify=true) behaviour.
We can either update it from arg requests_Session from here :
Line 56 in 6c7bf18
or pass appropriate value here :
Line 90 in 6c7bf18