Skip to content

Commit

Permalink
Merge pull request #81 from pcahyna/really_too_large_size
Browse files Browse the repository at this point in the history
Determine too_large_size dynamically
  • Loading branch information
pcahyna authored Apr 15, 2020
2 parents 967d030 + 6ae29fc commit d1a46e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/tests_lvm_errors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
invalid_disks:
- '/non/existent/disk'
invalid_size: 'xyz GiB'
too_large_size: '500 GiB'
unused_disk_subfact: '{{ ansible_devices[unused_disks[0]] }}'
too_large_size: '{{ (unused_disk_subfact.sectors|int + 1) *
unused_disk_subfact.sectorsize|int }}'

tasks:
- include_role:
Expand Down

0 comments on commit d1a46e7

Please sign in to comment.