YAQL/Jinja function 'task' doesn't work w/o a task name

Bug #1657694 reported by Renat Akhmerov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
High
Renat Akhmerov

Bug Description

This function should work as 'task(task1)' and 'task()'. In the second case it should return the current task. For example,

---
version: '2.0'

wf:
  tasks:
    task1:
      action: std.echo output='foo'
      publish:
        my_var: <% task().result %>

In this case 'my_var' should be assigned with 'foo'. In such cases it's not necessary to specify a task name for when using 'task' function.

Changed in mistral:
importance: Undecided → High
assignee: nobody → Renat Akhmerov (rakhmerov)
milestone: none → ocata-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to mistral (master)

Fix proposed to branch: master
Review: https://review.openstack.org/422518

Changed in mistral:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

Reviewed: https://review.openstack.org/422518
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=9d462e9da9b7502aebd3d488e75ba5d8a1f142a5
Submitter: Jenkins
Branch: master

commit 9d462e9da9b7502aebd3d488e75ba5d8a1f142a5
Author: Renat Akhmerov <email address hidden>
Date: Thu Jan 19 17:00:15 2017 +0700

    Make 'task' function work w/o a task name

    Change-Id: I29a4fae31d5ef25d947383a5de5253b55cdafbf5
    Closes-Bug: #1657694

Changed in mistral:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/mistral 4.0.0.0b3

This issue was fixed in the openstack/mistral 4.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.