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:
Mike Bonnet 2007-03-22 18:27:46 -04:00
parent 3d2a99f61e
commit 54cd667959
4 changed files with 21 additions and 6 deletions

View file

@ -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)