tenant object passed to context manager.

"deploy tenant" method should be called with three parameters

Closes #6340
This commit is contained in:
Serghei Mihai 2015-01-25 21:23:06 +01:00
parent d2ffb5af34
commit c1f66c779d
1 changed files with 4 additions and 3 deletions

View File

@ -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