Merge "Disabling strict attributes fetching in legacy expressions"
This commit is contained in:
commit
d7e40799f1
|
@ -85,9 +85,9 @@ class Context(object):
|
|||
}
|
||||
|
||||
def evaluate(condition):
|
||||
return Expression(
|
||||
Context.transform_legacy_condition(condition), context
|
||||
).evaluate()
|
||||
return Expression(Context.transform_legacy_condition(condition),
|
||||
context,
|
||||
strict=False).evaluate()
|
||||
|
||||
return evaluate
|
||||
|
||||
|
|
|
@ -63,8 +63,9 @@ class ExpressionBasedTask(DeploymentHook):
|
|||
def should_execute(self):
|
||||
if 'condition' not in self.task:
|
||||
return True
|
||||
return Expression(
|
||||
self.task['condition'], self._expression_context).evaluate()
|
||||
return Expression(self.task['condition'],
|
||||
self._expression_context,
|
||||
strict=False).evaluate()
|
||||
|
||||
|
||||
class GenericNodeHook(ExpressionBasedTask):
|
||||
|
|
Loading…
Reference in New Issue