copy opts in ClientSession.__init__() because we modify it in setSession()
undo state changes by ssl_login() in setSession(None) remove some extraneous session options
This commit is contained in:
parent
3d2a99f61e
commit
54cd667959
4 changed files with 21 additions and 6 deletions
|
|
@ -2407,7 +2407,7 @@ if __name__ == "__main__":
|
|||
|
||||
#build session options
|
||||
session_opts = {}
|
||||
for k in ('cert', 'ca', 'serverca', 'user','password','debug_xmlrpc', 'debug'):
|
||||
for k in ('user','password','debug_xmlrpc', 'debug'):
|
||||
session_opts[k] = getattr(options,k)
|
||||
#start a session and login
|
||||
session = koji.ClientSession(options.server, session_opts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue