From e68d127845faccca9ec0a48cd7a9863553337893 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Wed, 8 Jan 2025 15:20:13 -0500 Subject: [PATCH] Update assertion --- .../infra/lvm_snapshots/roles/shrink_lv/tasks/check_device.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collections/ansible_collections/infra/lvm_snapshots/roles/shrink_lv/tasks/check_device.yaml b/collections/ansible_collections/infra/lvm_snapshots/roles/shrink_lv/tasks/check_device.yaml index bb03907..c43993a 100644 --- a/collections/ansible_collections/infra/lvm_snapshots/roles/shrink_lv/tasks/check_device.yaml +++ b/collections/ansible_collections/infra/lvm_snapshots/roles/shrink_lv/tasks/check_device.yaml @@ -4,7 +4,7 @@ - name: Assert that the mount point exists ansible.builtin.assert: - that: (shrink_lv_mount_info | length) == 1 + that: shrink_lv_mount_info['device'] is defined fail_msg: "Mount point {{ item['device'] }} does not exist" - name: Assert that the filesystem is supported