flake8 fix

This commit is contained in:
Tomas Kopecek 2020-06-19 13:23:59 +02:00
parent baa14dd38e
commit ae1561876c

View file

@ -293,9 +293,9 @@ class BuildRoot(object):
# Append opts['plugin_conf'] to enable Mock package signing
if 'mock.plugin_conf.sign_enable' in self.config['extra']:
# check rest of configuration
if 'mock.plugin_conf.sign_cmd' not in self.config['extra'] or \
'mock.plugin_conf.sign_opts' not in self.config['extra']:
raise koji.GenericError("Tag is not configured properly for mock's sign plugin'")
if ('mock.plugin_conf.sign_cmd' not in self.config['extra'] or
'mock.plugin_conf.sign_opts' not in self.config['extra']):
raise koji.GenericError("Tag is not configured properly for mock's sign plugin'")
opts['plugin_conf'] = {
'sign_enable': self.config['extra']['mock.plugin_conf.sign_enable'],
'sign_opts': {