summaryrefslogtreecommitdiff
path: root/heat/engine/constraints.py
diff options
context:
space:
mode:
authorDerek Higgins <derekh@redhat.com>2014-07-19 09:17:05 +0100
committerDerek Higgins <derekh@redhat.com>2014-07-19 09:20:37 +0100
commit45f97e6a840bbba2a467558e60549e664496633e (patch)
tree6550d7594f36083dba0519c6b1ba58a985e97f07 /heat/engine/constraints.py
parent9adf703a8a39e921a5a7c7158128069f223153dc (diff)
downloadheat-45f97e6a840bbba2a467558e60549e664496633e.tar.gz
Revert "Store clients in context"
This commit caused a regression in tripleo when trying to signal waitconditions. This reverts commit de8b071acf21fe054267619124ac1a0374496185. Fixes-bug: #1344079 Change-Id: Ib87eb81b687497a6669da38cb43b4f525cafa754
Diffstat (limited to 'heat/engine/constraints.py')
-rw-r--r--heat/engine/constraints.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/heat/engine/constraints.py b/heat/engine/constraints.py
index db4bdbb34..cc1f38eeb 100644
--- a/heat/engine/constraints.py
+++ b/heat/engine/constraints.py
@@ -18,6 +18,7 @@ import re
import six
from heat.common import exception
+from heat.engine import clients
from heat.engine import resources
from heat.openstack.common import strutils
@@ -574,8 +575,9 @@ class BaseCustomConstraint(object):
"value": value, "message": self._error_message}
def validate(self, value, context):
+ client = clients.Clients(context)
try:
- self.validate_with_client(context.clients, value)
+ self.validate_with_client(client, value)
except self.expected_exceptions as e:
self._error_message = str(e)
return False