mirror of
https://opendev.org/x/pyghmi
synced 2026-05-16 19:34:21 +00:00
fix remote console function for thinkserver
https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/6f9e457b5b5767ff51ed93d90d45974a0b8e6087 Fix remote console function for thinkserver Adds conn.cookies = {} to erase the cookies stored by the webclient. We do not want to use it's cookies management mechanism, since it will erase an authentication cookie we need to pass in a following request. Change-Id: I26e3599caff5c6159ec798b62e972747f0a4109f
This commit is contained in:
@@ -792,6 +792,7 @@ class OEMHandler(generic.OEMHandler):
|
||||
conn.request('POST', '/rpc/WEBSES/create.asp', params, headers)
|
||||
rsp = conn.getresponse()
|
||||
if rsp.status == 200:
|
||||
conn.cookies = {}
|
||||
body = rsp.read().split('\n')
|
||||
session_line = None
|
||||
for line in body:
|
||||
|
||||
Reference in New Issue
Block a user