diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-03-06 05:01:47 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-03-06 05:01:48 +0000 |
commit | 9345e1648f2825980baba1c43dc27c4616e4ca37 (patch) | |
tree | 60e9d663779c53ef53c0ffe0b2c3dace4bb09957 /heat/engine/constraints.py | |
parent | 095a5eae434417ed8ba7bb3d73aacf493ac51387 (diff) | |
parent | 4136b476667845a9e564aaec6da67e10cec79035 (diff) | |
download | heat-9345e1648f2825980baba1c43dc27c4616e4ca37.tar.gz |
Merge "Use oslo.utils.reflection to extract class name"
Diffstat (limited to 'heat/engine/constraints.py')
-rw-r--r-- | heat/engine/constraints.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/heat/engine/constraints.py b/heat/engine/constraints.py index f4b948264..e15e36000 100644 --- a/heat/engine/constraints.py +++ b/heat/engine/constraints.py @@ -18,6 +18,7 @@ import re from oslo_cache import core from oslo_config import cfg from oslo_log import log +from oslo_utils import reflection from oslo_utils import strutils import six @@ -616,8 +617,8 @@ class BaseCustomConstraint(object): return False else: return True - - cache_value_prefix = "{0}:{1}".format(self.__class__.__name__, + class_name = reflection.get_class_name(self, fully_qualified=False) + cache_value_prefix = "{0}:{1}".format(class_name, six.text_type(context.tenant_id)) validation_result = check_cache_or_validate_value( cache_value_prefix, value) |