ariatosca-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dankilman <...@git.apache.org>
Subject [GitHub] incubator-ariatosca pull request #20: ARIA-9-API-for-operation-context
Date Tue, 15 Nov 2016 14:40:40 GMT
Github user dankilman commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/20#discussion_r88025087
  
    --- Diff: aria/decorators.py ---
    @@ -60,10 +60,8 @@ def operation(func=None, toolbelt=False, suffix_template=''):
         @wraps(func)
         def _wrapper(**func_kwargs):
             if toolbelt:
    -            with context.toolbelt(func_kwargs.get('ctx')) as operation_toolbelt:
    -                func_kwargs.setdefault('toolbelt', operation_toolbelt)
    -                validate_function_arguments(func, func_kwargs)
    -                return func(**func_kwargs)
    +            operation_toolbelt = context.toolbelt(func_kwargs.get('ctx'))
    --- End diff --
    
    `[]`


---
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