Update the standard interface regex
Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/44ac15f3 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/44ac15f3 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/44ac15f3 Branch: refs/heads/ARIA-126-update-node-statuses Commit: 44ac15f3969179c4907400f743293a4c2fabaf1d Parents: 137b91e Author: Avia Efrat <[email protected]> Authored: Sun Mar 26 12:19:27 2017 +0300 Committer: Avia Efrat <[email protected]> Committed: Sun Mar 26 12:19:27 2017 +0300 ---------------------------------------------------------------------- aria/orchestrator/workflows/core/events_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/44ac15f3/aria/orchestrator/workflows/core/events_handler.py ---------------------------------------------------------------------- diff --git a/aria/orchestrator/workflows/core/events_handler.py b/aria/orchestrator/workflows/core/events_handler.py index 16563e1..7191674 100644 --- a/aria/orchestrator/workflows/core/events_handler.py +++ b/aria/orchestrator/workflows/core/events_handler.py @@ -128,7 +128,7 @@ def _workflow_cancelling(workflow_context, *args, **kwargs): def _update_node_state(task, transitional=False): - match = re.search('(?:tosca.interfaces.node.lifecycle.Standard|Standard):(\S+)@node', + match = re.search('^(?:tosca.interfaces.node.lifecycle.Standard|Standard):(\S+)@node', task.context.name) if match: node = task.runs_on
