mistral-extra/examples/v2/openstack/glance_actions.yaml
Timur Nurlygayanov 35f786b757 Updated yaml configuration for tasks
Change-Id: I0e7befd33c582a82bfeedc721da216a550241867
Closes-Bug: #1497294
2015-09-18 16:50:18 +03:00

27 lines
534 B
YAML

---
version: '2.0'
name: glance_actions
workflows:
get_first_glance_image:
type: direct
output:
image:
id: <% $.image_id %>
name: <% $.image_name %>
tasks:
get_image_id:
action: glance.images_list
publish:
image_id: <% task(get_image_id).result[0].id %>
on-success:
- get_image_name
get_image_name:
action: glance.images_get image_id=<% $.image_id %>
publish:
image_name: <% task(get_image_name).result.name %>