Fix workflow documents
Change the way get result of tasks Change-Id: Ic3ca93c967269fe0f4c3f7124470fb04661122ed
This commit is contained in:
parent
b8a8aad645
commit
f13b69ca69
|
@ -253,7 +253,7 @@ YAML example
|
|||
action: nova.servers_create name=<% $.vm_name %> \
|
||||
image=<% $.image_ref %> flavor=<% $.flavor_ref %>
|
||||
publish:
|
||||
vm_ids: <% $.create_servers.id %>
|
||||
vm_ids: <% task().result.id %>
|
||||
on-success:
|
||||
- wait_for_servers
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ YAML example
|
|||
create_server:
|
||||
action: nova.servers_create name=<% $.vm_name %> image=<% $.image_ref %> flavor=<% $.flavor_ref %>
|
||||
publish:
|
||||
vm_id: <% $.id %>
|
||||
vm_id: <% task().result.id %>
|
||||
on-success:
|
||||
- wait_for_instance
|
||||
wait_for_instance:
|
||||
|
@ -76,7 +76,7 @@ YAML example of direct workflow
|
|||
create_vm:
|
||||
action: nova.servers_create name=<% $.vm_name %> image=<% $.image_id %> flavor=<% $.flavor_id %>
|
||||
publish:
|
||||
vm_id: <% $.id %>
|
||||
vm_id: <% task().result.id %>
|
||||
on-error:
|
||||
- send_error_email
|
||||
on-success:
|
||||
|
@ -124,11 +124,11 @@ YAML example of reverse workflow
|
|||
create_vm:
|
||||
action: nova.servers_create name=<% $.vm_name %> image=<% $.image_id %> flavor=<% $.flavor_id %>
|
||||
publish:
|
||||
vm_id: <% $.id %>
|
||||
vm_id: <% task().result.id %>
|
||||
search_for_ip:
|
||||
action: nova.floating_ips_findall instance_id=null
|
||||
publish:
|
||||
vm_ip: <% $[0].ip %>
|
||||
vm_ip: <% task().result.ip %>
|
||||
associate_ip:
|
||||
action: nova.servers_add_floating_ip server=<% $.vm_id %> address=<% $.vm_ip %>
|
||||
requires: [search_for_ip]
|
||||
|
|
Loading…
Reference in New Issue