Adjusting examples to YAQL 1.0
Change-Id: Id2d1daaf6ce7e09f9bb8bef062ff566d2ca156a1
This commit is contained in:
parent
a78bf209c4
commit
2d4eaab3f9
|
@ -97,7 +97,7 @@ workflows:
|
|||
to_addrs: [<% $.to_email %>]
|
||||
subject: Workflow result
|
||||
body: |
|
||||
Workflow result of execution <% $.__execution.id %> is <% $.result %>
|
||||
Workflow result of execution <% execution().id %> is <% $.result %>
|
||||
|
||||
-- Thanks, Mistral Team.
|
||||
smtp_server: <% $.smtp_server %>
|
||||
|
@ -113,7 +113,7 @@ workflows:
|
|||
to_addrs: [<% $.to_email %>]
|
||||
subject: Workflow error
|
||||
body: |
|
||||
Failed to create a VM in execution <% $.__execution.id %>
|
||||
Failed to create a VM in execution <% execution().id %>
|
||||
|
||||
-- Thanks, Mistral Team.
|
||||
smtp_server: <% $.smtp_server %>
|
||||
|
|
|
@ -50,7 +50,7 @@ workflows:
|
|||
action: nova.servers_list
|
||||
publish:
|
||||
vm_count: <% $.get_vm_count.len() %>
|
||||
active_vm_count: <% $.get_vm_count[$.status = 'ACTIVE'].len() %>
|
||||
active_vm_count: <% $.get_vm_count.where($.status = 'ACTIVE').len() %>
|
||||
on-complete:
|
||||
- get_net_count
|
||||
|
||||
|
@ -94,7 +94,7 @@ workflows:
|
|||
action: nova.servers_list
|
||||
publish:
|
||||
vm_count: <% $.get_vm_count.len() %>
|
||||
active_vm_count: <% $.get_vm_count[$.status = 'ACTIVE'].len() %>
|
||||
active_vm_count: <% $.get_vm_count.where($.status = 'ACTIVE').len() %>
|
||||
on-complete:
|
||||
- send_stat
|
||||
|
||||
|
|
Loading…
Reference in New Issue