p3270
p3270 copied to clipboard
verifyCert='no' is not respected, it seems to default to yes regardless
Using this
from p3270 import P3270Client
my_client = P3270Client(luName='#LU01', hostName='170.1.2.3', hostPort='1234',
modelName='3278-4', verifyCert='no', timeoutInSec=5)
I found that verifyCert would still default to yes, and so this arg is never appended:
if self.conf.verifyCert == "no":
self.args.append('-noverifycert')
I'm not quite sure why though didn't really see anything that seemed wrong at first glance, and the other args are not behaving like this
I had to manually edit the code :
def __init__(self, cfgFile=None, hostName='localhost', hostPort='23',
modelName='3279-2', traceFile=None,
luName=None, codePage='cp037', screensDir=None, verifyCert='no', enableTLS='no'):
This works