Expanding procedure arguments from context
This commit is contained in:
parent
1404d59865
commit
0b053bb46d
1 changed files with 3 additions and 1 deletions
|
@ -121,9 +121,11 @@ class Procedure(object):
|
||||||
n_tries -- Number of tries in case of failure before raising a RuntimeError
|
n_tries -- Number of tries in case of failure before raising a RuntimeError
|
||||||
"""
|
"""
|
||||||
if self.args:
|
if self.args:
|
||||||
logger.info('Executing procedure {} with arguments {}'.format(self.name, self.args))
|
|
||||||
for (k,v) in self.args.items():
|
for (k,v) in self.args.items():
|
||||||
|
v = Request.expand_value_from_context(v, **context)
|
||||||
|
self.args[k] = v
|
||||||
context[k] = v
|
context[k] = v
|
||||||
|
logger.info('Executing procedure {} with arguments {}'.format(self.name, self.args))
|
||||||
else:
|
else:
|
||||||
logger.info('Executing procedure {}'.format(self.name))
|
logger.info('Executing procedure {}'.format(self.name))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue