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):
|
def evaluate(condition):
|
||||||
return Expression(
|
return Expression(Context.transform_legacy_condition(condition),
|
||||||
Context.transform_legacy_condition(condition), context
|
context,
|
||||||
).evaluate()
|
strict=False).evaluate()
|
||||||
|
|
||||||
return evaluate
|
return evaluate
|
||||||
|
|
||||||
|
|
|
@ -63,8 +63,9 @@ class ExpressionBasedTask(DeploymentHook):
|
||||||
def should_execute(self):
|
def should_execute(self):
|
||||||
if 'condition' not in self.task:
|
if 'condition' not in self.task:
|
||||||
return True
|
return True
|
||||||
return Expression(
|
return Expression(self.task['condition'],
|
||||||
self.task['condition'], self._expression_context).evaluate()
|
self._expression_context,
|
||||||
|
strict=False).evaluate()
|
||||||
|
|
||||||
|
|
||||||
class GenericNodeHook(ExpressionBasedTask):
|
class GenericNodeHook(ExpressionBasedTask):
|
||||||
|
|
Loading…
Reference in New Issue