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 <andrew.walters@att.com>
This commit is contained in:
Drew Walters 2020-04-27 14:23:48 +00:00
parent 996fa6f231
commit e0d612f437

View File

@ -55,8 +55,8 @@
register: libvirt_create_volume register: libvirt_create_volume
failed_when: failed_when:
- "libvirt_create_volume.rc != 0" - "libvirt_create_volume.rc != 0"
- "'exists already' not in libvirt_create_volume.stderr" - "'exists already' in libvirt_create_volume.stderr"
- "'exists already' not in libvirt_create_volume.stdout" - "'exists already' in libvirt_create_volume.stdout"
changed_when: changed_when:
- "libvirt_create_volume.rc != 1" - "libvirt_create_volume.rc != 1"
- "'exists already' not in libvirt_create_volume.stderr" - "'exists already' not in libvirt_create_volume.stderr"