Projet

Général

Profil

0001-commands-always-add-global-publisher-variables-to-co.patch

Frédéric Péters, 22 décembre 2020 18:01

Télécharger (1,43 ko)

Voir les différences:

Subject: [PATCH] commands: always add global publisher variables to context
 (#46710)

 wcs/ctl/management/commands/__init__.py | 1 +
 wcs/ctl/management/commands/runjob.py   | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
wcs/ctl/management/commands/__init__.py
28 28
            raise CommandError('unknown tenant')
29 29
        publisher.app_dir = os.path.join(publisher.APP_DIR, domain)
30 30
        publisher.set_config()
31
        publisher.substitutions.feed(publisher)
31 32
        return publisher
wcs/ctl/management/commands/runjob.py
33 33
    def handle(self, *args, **options):
34 34
        domain = options.pop('domain')
35 35
        self.init_tenant_publisher(domain)
36
        get_publisher().substitutions.feed(get_publisher())
37 36
        try:
38 37
            job = AfterJob.get(options['job_id'])
39 38
        except KeyError:
40
-