From ed057ece0155cf71c364c6a691da0e31fbf423ce Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Mon, 20 Aug 2018 15:40:45 +0100 Subject: [PATCH] MNAIO: When saving VM images RC=2 is not a fail When executing the save, the return code of 2 indicates a change was implemented - but I forgot to include that condition for failed_when. As it stands now the task will be considered failed which is a bit useless. Change-Id: Ie8b36335048d2dcf6d0f9e66f8440430f4a68398 --- multi-node-aio/playbooks/save-vms.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/multi-node-aio/playbooks/save-vms.yml b/multi-node-aio/playbooks/save-vms.yml index 1c3fef9e..cc8cce41 100644 --- a/multi-node-aio/playbooks/save-vms.yml +++ b/multi-node-aio/playbooks/save-vms.yml @@ -64,6 +64,7 @@ with_items: "{{ groups['pxe_servers'] }}" register: _save_disk_image changed_when: _save_disk_image.rc == 2 + failed_when: _save_disk_image.rc not in [0, 2] - name: Save VM definition copy: