From 3431dfede2cd8966674b7c0f5cc7f7c2c1d77404 Mon Sep 17 00:00:00 2001 From: chenaidong1 Date: Fri, 28 Apr 2017 17:17:43 +0800 Subject: [PATCH] Correct the class equivalent judgement error for n, f in six.iteritems(self.functions): if not isinstance(f, hot_funcs.Removed): self._parser_condition_functions[n] = function.Invalid else: self._parser_condition_functions[n] = f In the above codes, "f" is a class ,not an instance, therefore isinstance is uncorrect. Change-Id: I9ec41d19b77acf6e083b7c5cb5b779dc54b4e547 --- heat/engine/hot/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heat/engine/hot/template.py b/heat/engine/hot/template.py index 44ca6cea81..30f73d088d 100644 --- a/heat/engine/hot/template.py +++ b/heat/engine/hot/template.py @@ -479,7 +479,7 @@ class HOTemplate20161014(HOTemplate20160408): self._parser_condition_functions = {} for n, f in six.iteritems(self.functions): - if not isinstance(f, hot_funcs.Removed): + if not f == hot_funcs.Removed: self._parser_condition_functions[n] = function.Invalid else: self._parser_condition_functions[n] = f