tenant object passed to context manager.
"deploy tenant" method should be called with three parameters Closes #6340
This commit is contained in:
parent
d2ffb5af34
commit
c1f66c779d
|
@ -23,8 +23,9 @@ class Command(BaseCommand):
|
|||
call_command('create_tenant', hostname)
|
||||
|
||||
tenant_name = TenantMiddleware.hostname2schema(hostname)
|
||||
with tenant_context(tenant_name):
|
||||
self.deploy_tenant(environment, service)
|
||||
tenant = TenantMiddleware.get_tenant_by_hostname(tenant_name)
|
||||
with tenant_context(tenant):
|
||||
self.deploy_tenant(environment, service, options)
|
||||
|
||||
def deploy_tenant(self, options, environment, service):
|
||||
def deploy_tenant(self, environment, service, options):
|
||||
pass
|
||||
|
|
Reference in New Issue