#NEWLINE# def create_runner( tasker , workflow , ssl_certs = False , principal = None , keytab = None , metadata_only = False , blocksize = None ) : #NEWLINE# #INDENT# args = { #NEWLINE# #INDENT# 'kojihub' : '' , #NEWLINE# 'url' : '/' , #NEWLINE# #UNINDENT# } #NEWLINE# if workflow : #NEWLINE# #INDENT# args [ 'koji_ssl_certs' ] = '/' #NEWLINE# #UNINDENT# if principal : #NEWLINE# #INDENT# args [ 'koji_principal' ] = principal #NEWLINE# #UNINDENT# if keytab : #NEWLINE# #INDENT# args [ 'koji_keytab' ] = keytab #NEWLINE# #UNINDENT# if metadata_only : #NEWLINE# #INDENT# args [ 'metadata_only' ] = True #NEWLINE# #UNINDENT# if blocksize : #NEWLINE# #INDENT# args [ 'blocksize' ] = blocksize #NEWLINE# #UNINDENT# runner = ExitPluginsRunner ( tasker , workflow , [ { #NEWLINE# #INDENT# 'name' : KojiPromotePlugin . key , #NEWLINE# 'args' : args , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# return runner