Github user ran-z commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/91#discussion_r109303772
  
    --- Diff: extensions/aria_extension_tosca/simple_v1_0/modeling/__init__.py 
---
    @@ -85,9 +85,14 @@ def create_service_template_model(context): # pylint: 
disable=too-many-locals,to
         policies = context.presentation.get('service_template', 
'topology_template', 'policies')
         if policies:
             for policy in policies.itervalues():
    -            if model.policy_types.get_descendant(policy.type).role == 
'plugin':
    +            role = model.policy_types.get_descendant(policy.type).role
    --- End diff --
    
    what about policies which are neither plugin or workflows?
    
    I think the expected behavior should be that any such policy will be 
available under `service.policies`, while the plugin and workflow ones won't be 
available under `service.policies`, no?


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to