4e699ce21b
* Fixed standard actions and workflows paths. If mistral is installed in system, 'resources' are not copied to dist-packages/mistral, so mistral-db-manage populate command won't work. Now resources are included in mistral. Closes-Bug: #1457842 Change-Id: I3149867e615acd188691b299a051e7458e2eb386
26 lines
456 B
YAML
26 lines
456 B
YAML
---
|
|
version: "2.0"
|
|
|
|
std.delete_instance:
|
|
type: direct
|
|
|
|
input:
|
|
- instance_id
|
|
|
|
description: Deletes VM.
|
|
|
|
tasks:
|
|
delete_vm:
|
|
description: Destroy VM.
|
|
action: nova.servers_delete server=<% $.instance_id %>
|
|
wait-after: 10
|
|
on-success:
|
|
- find_given_vm
|
|
|
|
find_given_vm:
|
|
description: Checks that VM is already deleted.
|
|
action: nova.servers_find id=<% $.instance_id %>
|
|
on-error:
|
|
- succeed
|
|
|