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/3e42a8eb Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/3e42a8eb Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/3e42a8eb Branch: refs/heads/ARIA-126-update-node-statuses Commit: 3e42a8ebe8ecc52ff4c08f36633694ed57212255 Parents: 72d824f Author: Avia Efrat <[email protected]> Authored: Sun Mar 26 12:19:27 2017 +0300 Committer: Avia Efrat <[email protected]> Committed: Sun Mar 26 12:25:33 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/3e42a8eb/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
