Fix for if statements

This commit is contained in:
Fabio Manganiello 2018-09-27 02:20:25 +02:00
parent 570ef6f109
commit d419419487

View file

@ -108,8 +108,8 @@ class Procedure(object):
request = Request.build(request_config)
reqs.append(request)
if not if_config.empty():
reqs.append(IfProcedure.build(**(if_config.get())))
for pending_if in if_config.queue:
reqs.append(IfProcedure.build(**pending_if))
return procedure_class(name=name, _async=_async, requests=reqs, args=args, backend=backend, **kwargs)