koji-gc: fix flake8
This commit is contained in:
parent
19b491ec47
commit
4f925cec2b
1 changed files with 4 additions and 3 deletions
|
|
@ -304,9 +304,10 @@ class BuildRoot(object):
|
|||
opts['use_bootstrap'] = bool(self.config['extra']['mock.use_bootstrap'])
|
||||
|
||||
# it must be allowed in kojid.conf *and* in tag's extra info
|
||||
if not self.options.mock_bootstrap_image and \
|
||||
self.config['extra'].get('mock.bootstrap_image'):
|
||||
self.logger.warning("Mock bootstrap image requested by buildroot %d, but forbidden on builder" % self.id)
|
||||
if (not self.options.mock_bootstrap_image and
|
||||
self.config['extra'].get('mock.bootstrap_image')):
|
||||
self.logger.warning("Mock bootstrap image requested by buildroot %d, "
|
||||
"but forbidden on builder" % self.id)
|
||||
opts['bootstrap_image'] = self.options.mock_bootstrap_image and \
|
||||
self.config['extra'].get('mock.bootstrap_image')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue