ariatosca-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mxmrlv <...@git.apache.org>
Subject [GitHub] incubator-ariatosca pull request #12: ARIA-3 Create an API for creating work...
Date Sun, 06 Nov 2016 16:10:39 GMT
Github user mxmrlv commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/12#discussion_r86688764
  
    --- Diff: aria/decorators.py ---
    @@ -34,61 +35,55 @@ def workflow(
         if func is None:
             return partial(
                 workflow,
    -            workflow_context=workflow_context,
                 simple_workflow=simple_workflow,
                 suffix_template=suffix_template)
     
         @wraps(func)
    -    def _wrapper(context, **custom_kwargs):
    +    def _wrapper(ctx, **custom_kwargs):
    +
             workflow_name = _generate_workflow_name(
                 func_name=func.__name__,
                 suffix_template=suffix_template,
    -            context=context,
    +            ctx=ctx,
                 **custom_kwargs)
    -        func_kwargs = _create_func_kwargs(
    -            custom_kwargs,
    -            context,
    -            add_context=workflow_context,
    -            workflow_name=workflow_name)
    -        validate_function_arguments(func, func_kwargs)
    -        func(**func_kwargs)
    -        return func_kwargs['graph']
    +
    +        custom_kwargs.setdefault('ctx', ctx)
    --- End diff --
    
    workflow_parameters



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message