wcs: initialize publisher language and substitution variables (#60908)

This commit is contained in:
Frédéric Péters 2022-01-27 16:04:39 +01:00
parent 371e1cfa1e
commit 1a346a91f8
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ class Cmd(Command):
publisher.WcsPublisher.configure(self.config)
publisher = publisher.WcsPublisher.create_publisher(register_tld_names=False)
publisher.set_tenant_by_hostname(sub_options.domain)
publisher.install_lang()
publisher.substitutions.feed(publisher)
self.directory = args[0]
self.import_categories()
self.import_datasources()