wcs: use new set_tenant_by_hostname() method (#54437)
This commit is contained in:
parent
c1a6da9736
commit
e134d93b86
|
@ -15,8 +15,7 @@ class Cmd(Command):
|
|||
|
||||
publisher.WcsPublisher.configure(self.config)
|
||||
publisher = publisher.WcsPublisher.create_publisher(register_tld_names=False)
|
||||
publisher.app_dir = os.path.join(publisher.app_dir, sub_options.domain)
|
||||
publisher.set_config()
|
||||
publisher.set_tenant_by_hostname(sub_options.domain)
|
||||
for role in publisher.role_class.select():
|
||||
if role.name == args[0]:
|
||||
sys.exit(0)
|
||||
|
|
|
@ -27,8 +27,7 @@ class Cmd(Command):
|
|||
|
||||
publisher.WcsPublisher.configure(self.config)
|
||||
publisher = publisher.WcsPublisher.create_publisher(register_tld_names=False)
|
||||
publisher.app_dir = os.path.join(publisher.app_dir, sub_options.domain)
|
||||
publisher.set_config()
|
||||
publisher.set_tenant_by_hostname(sub_options.domain)
|
||||
self.directory = args[0]
|
||||
self.import_categories()
|
||||
self.import_datasources()
|
||||
|
|
Loading…
Reference in New Issue