orchestrator: Compatibility with Python 2.6

This is why we can't have nice things.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2019-01-10 10:43:14 +01:00
parent 86314fdc83
commit 7320bf4943

View File

@ -106,7 +106,7 @@ class ComposePart(object):
self.status = Status.READY
def setup_start(self, global_config, parts):
substitutions = {name: p.path for name, p in parts.items() if p.is_finished()}
substitutions = dict((name, p.path) for name, p in parts.items() if p.is_finished())
substitutions["configdir"] = global_config.config_dir
config = kobo.conf.PyConfigParser()