cook: wait for secondary hobo to be deployed (#33653)
This commit is contained in:
parent
e70d32b5a6
commit
f57c8a7718
|
@ -124,6 +124,10 @@ class Command(BaseCommand):
|
|||
slug = 'hobo-%s' % slugify(title)
|
||||
self.create_site(Hobo, url, title, slug,
|
||||
template_name='', variables=None)
|
||||
# deploy and wait for new site
|
||||
notify_agents(None)
|
||||
self.wait_operationals(timeout=self.timeout)
|
||||
# switch context to new hobo
|
||||
domain = get_domain(url)
|
||||
tenant = TenantMiddleware.get_tenant_by_hostname(domain)
|
||||
connection.set_tenant(tenant)
|
||||
|
|
Loading…
Reference in New Issue