[
https://issues.apache.org/jira/browse/ARIA-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15952596#comment-15952596
]
ASF GitHub Bot commented on ARIA-134:
-------------------------------------
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?
> Service.workflows field is not populated
> ----------------------------------------
>
> Key: ARIA-134
> URL: https://issues.apache.org/jira/browse/ARIA-134
> Project: AriaTosca
> Issue Type: Bug
> Reporter: Ran Ziv
> Assignee: Tal Liron
>
> Service.workflows field is not populated
> It should be populated with policies whose role is set to Workflow
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)