Fix log_output default value

Fixes: https://pagure.io/koji/issue/2806
This commit is contained in:
Jana Cupova 2021-10-21 12:16:48 +02:00
parent 03dafc423a
commit 75b8e37569

View file

@ -6153,6 +6153,7 @@ enabled=1
selected[rpm_id]['best_key'] = best_key
# write signed rpms
log_output = ''
if opts.get('write_signed_rpms'):
results = []
rpm_with_key = []
@ -6162,7 +6163,6 @@ enabled=1
results.append(m.host.writeSignedRPM(rpm_id, selected[rpm_id]['best_key']))
rpm_with_key.append(rpm_id)
log_output = ''
for rpm_id, r in zip(rpm_with_key, results):
if isinstance(r._result, list):
log_output += 'Signed RPM %s is writen with %s key.\n' \