commands: always add global publisher variables to context (#46710)
This commit is contained in:
parent
935e405002
commit
35bdc42674
|
@ -28,4 +28,5 @@ class TenantCommand(BaseCommand):
|
|||
raise CommandError('unknown tenant')
|
||||
publisher.app_dir = os.path.join(publisher.APP_DIR, domain)
|
||||
publisher.set_config()
|
||||
publisher.substitutions.feed(publisher)
|
||||
return publisher
|
||||
|
|
|
@ -33,7 +33,6 @@ class Command(TenantCommand):
|
|||
def handle(self, *args, **options):
|
||||
domain = options.pop('domain')
|
||||
self.init_tenant_publisher(domain)
|
||||
get_publisher().substitutions.feed(get_publisher())
|
||||
try:
|
||||
job = AfterJob.get(options['job_id'])
|
||||
except KeyError:
|
||||
|
|
Loading…
Reference in New Issue