koji-gc: fix flake8

This commit is contained in:
Tomas Kopecek 2020-06-18 15:51:42 +02:00
parent 19b491ec47
commit 4f925cec2b

View file

@ -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')