grab_session_options function
This commit is contained in:
parent
33e1bdee97
commit
3d16485c6f
2 changed files with 35 additions and 9 deletions
11
cli/koji
11
cli/koji
|
|
@ -7171,15 +7171,8 @@ if __name__ == "__main__":
|
|||
else:
|
||||
logger.setLevel(logging.WARN)
|
||||
|
||||
session_opts = {}
|
||||
for k in ('user', 'password', 'krbservice', 'debug_xmlrpc', 'debug', 'max_retries',
|
||||
'retry_interval', 'offline_retry', 'offline_retry_interval',
|
||||
'anon_retry', 'keepalive', 'timeout', 'use_fast_upload',
|
||||
'upload_blocksize', 'krb_rdns', 'use_old_ssl', 'serverca'):
|
||||
value = getattr(options,k)
|
||||
if value is not None:
|
||||
session_opts[k] = value
|
||||
session = koji.ClientSession(options.server,session_opts)
|
||||
session_opts = koji.grab_session_options(options)
|
||||
session = koji.ClientSession(options.server, session_opts)
|
||||
rv = 0
|
||||
try:
|
||||
rv = locals()[command].__call__(options, session, args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue