cook: wait for secondary hobo to be deployed (#33653)

This commit is contained in:
Frédéric Péters 2019-06-04 11:22:12 +02:00
parent e70d32b5a6
commit f57c8a7718
1 changed files with 4 additions and 0 deletions

View File

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