]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Store created nova client in OpenStackClients.
authorSteve Baker <sbaker@redhat.com>
Mon, 24 Jun 2013 03:21:43 +0000 (15:21 +1200)
committerSteve Baker <sbaker@redhat.com>
Mon, 24 Jun 2013 22:01:55 +0000 (10:01 +1200)
All created clients are stored in the instance of OpenStackClients
which is associated with a stack - this prevents clients from
being repeatedly created throughout the request.

Commit f3fc5c5 introduced a regression which stopped storing the
nova client. This change addresses that regression.

Change-Id: I60088b60f623aac11e473d185f2924d4f4bd1cfe

heat/engine/clients.py

index 31f418ae2cc8c67d124f137953cbbbcd0c69a67f..84f1d0f5863b12f91ec52a927ad4f3b2fc469f84 100644 (file)
@@ -98,6 +98,8 @@ class OpenStackClients(object):
             management_url = self.url_for(service_type=service_type)
             client.client.auth_token = con.auth_token
             client.client.management_url = management_url
+
+        self._nova[service_type] = client
         return client
 
     def swift(self):