use grab_session_options everywhere

This commit is contained in:
Mike McLean 2016-10-13 22:55:37 -04:00
parent ef790857ad
commit 89ca42f224
4 changed files with 5 additions and 23 deletions

View file

@ -1326,9 +1326,7 @@ if __name__ == "__main__":
options, args = get_options()
session_opts = {}
for k in ('user', 'password', 'krbservice', 'debug_xmlrpc', 'debug'):
session_opts[k] = getattr(options, k)
session_opts = koji.grab_session_options(options)
session = koji.ClientSession(options.server, session_opts)
if not options.noauth:
activate_session(session)