different callback method

This commit is contained in:
nazunalika 2021-03-05 11:25:10 -07:00
parent ad419b0caf
commit 8132fe9d2c
Signed by: label
GPG Key ID: CB6D9706D138D190

View File

@ -34,6 +34,7 @@ testing_tag = CONFIG.get('signing', 'testing_tag')
send_to_testing = CONFIG.get('signing', 'send_to_testing') send_to_testing = CONFIG.get('signing', 'send_to_testing')
sigul_config = CONFIG.get('signing', 'sigul_config') sigul_config = CONFIG.get('signing', 'sigul_config')
@callback('postTag')
def key_signing(cbtype, *args, **kws): def key_signing(cbtype, *args, **kws):
# Make sure this is a package build and nothing else # Make sure this is a package build and nothing else
if kws['tag']['name'] not in build_target: if kws['tag']['name'] not in build_target:
@ -92,4 +93,4 @@ def key_signing_rpm(rpm_name):
logging.getLogger('koji.plugin.key_signing').info('running sigul command: %s',command) logging.getLogger('koji.plugin.key_signing').info('running sigul command: %s',command)
run_sigul(command) run_sigul(command)
register_callback('postTag',key_signing) #register_callback('postTag',key_signing)