diff --git a/tests/tests_create_lv_size_equal_to_vg.yml b/tests/tests_create_lv_size_equal_to_vg.yml index cab4f085..535f73ba 100644 --- a/tests/tests_create_lv_size_equal_to_vg.yml +++ b/tests/tests_create_lv_size_equal_to_vg.yml @@ -8,8 +8,7 @@ volume_group_size: '10g' lv_size: '10g' unused_disk_subfact: '{{ ansible_devices[unused_disks[0]] }}' - disk_size: '{{ unused_disk_subfact.sectors | int * - unused_disk_subfact.sectorsize | int }}' + disk_size: '{{ unused_disk_subfact.sectors | int * 512 }}' tags: - tests::lvm diff --git a/tests/tests_misc.yml b/tests/tests_misc.yml index 6373897a..363d843f 100644 --- a/tests/tests_misc.yml +++ b/tests/tests_misc.yml @@ -8,8 +8,7 @@ volume_group_size: "5g" volume1_size: "4g" unused_disk_subfact: "{{ ansible_devices[unused_disks[0]] }}" - too_large_size: "{{ (unused_disk_subfact.sectors | int * 1.2) * - unused_disk_subfact.sectorsize | int }}" + too_large_size: "{{ (unused_disk_subfact.sectors | int * 1.2) * 512 }}" tags: - tests::lvm tasks: diff --git a/tests/tests_resize.yml b/tests/tests_resize.yml index 06fb3750..1cd21763 100644 --- a/tests/tests_resize.yml +++ b/tests/tests_resize.yml @@ -11,10 +11,8 @@ invalid_size1: xyz GiB invalid_size2: none unused_disk_subfact: '{{ ansible_devices[unused_disks[0]] }}' - too_large_size: '{{ unused_disk_subfact.sectors | int * 1.2 * - unused_disk_subfact.sectorsize | int }}' - disk_size: '{{ unused_disk_subfact.sectors | int * - unused_disk_subfact.sectorsize | int }}' + too_large_size: '{{ unused_disk_subfact.sectors | int * 1.2 * 512 }}' + disk_size: '{{ unused_disk_subfact.sectors | int * 512 }}' tags: - tests::lvm tasks: