Adjust examples to last Mistral updates
Change-Id: I1c2a10615e5af09fd0d48fbe55b1df67baee867e
This commit is contained in:
parent
acb823785c
commit
8c7965f5df
|
@ -14,6 +14,9 @@ actions:
|
|||
arguments: <% $.arguments %>
|
||||
output:
|
||||
summ_result: <% $.content.result %>
|
||||
input:
|
||||
- vm_ip
|
||||
- arguments
|
||||
|
||||
run_calculator_server:
|
||||
description: SSH command to run the server.
|
||||
|
@ -23,6 +26,10 @@ actions:
|
|||
username: <% $.username %>
|
||||
password: <% $.password %>
|
||||
cmd: 'nohup python ~/web_app.py > web_app.log &'
|
||||
input:
|
||||
- host
|
||||
- username
|
||||
- password
|
||||
|
||||
workflows:
|
||||
run_calculator:
|
||||
|
|
|
@ -49,15 +49,15 @@ workflows:
|
|||
get_vm_count:
|
||||
action: nova.servers_list
|
||||
publish:
|
||||
vm_count: <% $.get_vm_count.length() %>
|
||||
active_vm_count: <% $.get_vm_count[$.status = 'ACTIVE'].length() %>
|
||||
vm_count: <% $.get_vm_count.len() %>
|
||||
active_vm_count: <% $.get_vm_count[$.status = 'ACTIVE'].len() %>
|
||||
on-complete:
|
||||
- get_net_count
|
||||
|
||||
get_net_count:
|
||||
action: neutron.list_networks
|
||||
publish:
|
||||
net_count: <% $.get_net_count.length() %>
|
||||
net_count: <% $.get_net_count.len() %>
|
||||
on-complete:
|
||||
- send_stat
|
||||
|
||||
|
@ -93,15 +93,15 @@ workflows:
|
|||
get_vm_count:
|
||||
action: nova.servers_list
|
||||
publish:
|
||||
vm_count: <% $.get_vm_count.length() %>
|
||||
active_vm_count: <% $.get_vm_count[$.status = 'ACTIVE'].length() %>
|
||||
vm_count: <% $.get_vm_count.len() %>
|
||||
active_vm_count: <% $.get_vm_count[$.status = 'ACTIVE'].len() %>
|
||||
on-complete:
|
||||
- send_stat
|
||||
|
||||
get_net_count:
|
||||
action: neutron.list_networks
|
||||
publish:
|
||||
net_count: <% $.get_net_count.length() %>
|
||||
net_count: <% $.get_net_count.len() %>
|
||||
on-complete:
|
||||
- send_stat
|
||||
|
||||
|
|
Loading…
Reference in New Issue