Skip to content

Commit

Permalink
fix: Use blkid instead of lsblk in tests to get partition table
Browse files Browse the repository at this point in the history
Older versions of lsblk cannot print the PTTYPE column.
  • Loading branch information
vojtechtrefny committed Aug 27, 2024
1 parent 59fd1c6 commit 88c9d20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests_lvm_pool_members.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
disks: "{{ [unused_disks[0]] }}"

- name: Get the partition table type on disk removed from the VG
command: lsblk -o PTTYPE --noheadings --nodeps /dev/{{ unused_disks[1] }}
shell: blkid -p -ovalue -s PTTYPE /dev/{{ unused_disks[1] }} || /bin/true
register: storage_test_removed_pttype
changed_when: false

Expand Down Expand Up @@ -289,7 +289,7 @@
size: "{{ volume_size }}"

- name: Get the partition table type on disk removed from the VG
command: lsblk -o PTTYPE --noheadings --nodeps /dev/{{ unused_disks[0] }}
shell: blkid -p -ovalue -s PTTYPE /dev/{{ unused_disks[0] }} || /bin/true
register: storage_test_removed_pttype
changed_when: false

Expand Down

0 comments on commit 88c9d20

Please sign in to comment.