From e0d612f43708b0df1b4641f26e5914a27aed9d3b Mon Sep 17 00:00:00 2001 From: Drew Walters Date: Mon, 27 Apr 2020 14:23:48 +0000 Subject: [PATCH] Fix libvirt-volume error conditional The libvirt-volume error conditional does not register errors when it fails to create a volume due to an incorrect stdout check. This change fixes the conditional. Change-Id: I436324a22accf75a353c65ef3852838e992414e8 Signed-off-by: Drew Walters --- roles/libvirt-volume/tasks/create.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/libvirt-volume/tasks/create.yaml b/roles/libvirt-volume/tasks/create.yaml index e8a42401a..5a556b0ed 100644 --- a/roles/libvirt-volume/tasks/create.yaml +++ b/roles/libvirt-volume/tasks/create.yaml @@ -55,8 +55,8 @@ register: libvirt_create_volume failed_when: - "libvirt_create_volume.rc != 0" - - "'exists already' not in libvirt_create_volume.stderr" - - "'exists already' not in libvirt_create_volume.stdout" + - "'exists already' in libvirt_create_volume.stderr" + - "'exists already' in libvirt_create_volume.stdout" changed_when: - "libvirt_create_volume.rc != 1" - "'exists already' not in libvirt_create_volume.stderr"