Projet

Général

Profil

0001-cook-wait-for-secondary-hobo-to-be-deployed-33653.patch

Frédéric Péters, 04 juin 2019 11:22

Télécharger (1,11 ko)

Voir les différences:

Subject: [PATCH] cook: wait for secondary hobo to be deployed (#33653)

 hobo/environment/management/commands/cook.py | 4 ++++
 1 file changed, 4 insertions(+)
hobo/environment/management/commands/cook.py
124 124
                slug = 'hobo-%s' % slugify(title)
125 125
            self.create_site(Hobo, url, title, slug,
126 126
                    template_name='', variables=None)
127
            # deploy and wait for new site
128
            notify_agents(None)
129
            self.wait_operationals(timeout=self.timeout)
130
            # switch context to new hobo
127 131
            domain = get_domain(url)
128 132
            tenant = TenantMiddleware.get_tenant_by_hostname(domain)
129 133
            connection.set_tenant(tenant)
130
-