From d29e2d2f9ebf9787e63edea1785a42641b755fe9 Mon Sep 17 00:00:00 2001 From: Dawid Deja Date: Wed, 3 Feb 2016 10:51:41 +0100 Subject: [PATCH] Fix workflow, so it can get on_shared_storage value from input Signed-off-by: Dawid Deja --- host-evacuate.yaml | 3 ++- input.json | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 input.json diff --git a/host-evacuate.yaml b/host-evacuate.yaml index 500b0e6..da22dab 100644 --- a/host-evacuate.yaml +++ b/host-evacuate.yaml @@ -7,6 +7,7 @@ host-evacuate: input: - search_opts + - on_shared_storage tasks: list_vms: @@ -24,4 +25,4 @@ host-evacuate: evacuate_vms: with-items: vm in <% $.filtered_vms %> - action: custom.evacuate uuid=<% $.vm.uuid %> evacuate=<% $.vm.evacuate %> on_shared_storage=false + action: custom.evacuate uuid=<% $.vm.uuid %> evacuate=<% $.vm.evacuate %> on_shared_storage=<% $.on_shared_storage %> diff --git a/input.json b/input.json new file mode 100644 index 0000000..548c8fe --- /dev/null +++ b/input.json @@ -0,0 +1,4 @@ +{ + "search_opts": {"host": "compute1"}, + "on_shared_storage": false +}