Default MuranoPL function argument value was evaluated incorrectly
Change-Id: I4c1886a0907f95cf9461b2d1c126229195e0cc71 Closes-bug: #1308620
This commit is contained in:
parent
da01c81e78
commit
eff8b1450b
@ -175,8 +175,10 @@ class MuranoDslExecutor(object):
|
||||
if name not in parameter_values:
|
||||
if not arg_spec.has_default:
|
||||
raise TypeError()
|
||||
parameter_context = self._create_context(
|
||||
this, this.type, context)
|
||||
parameter_values[name] = arg_spec.validate(
|
||||
helpers.evaluate(arg_spec.default, context),
|
||||
helpers.evaluate(arg_spec.default, parameter_context),
|
||||
this, self._root_context, self._object_store)
|
||||
|
||||
return parameter_values
|
||||
|
Loading…
Reference in New Issue
Block a user