mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
lvol: Cast size(LogicalVolumeSize) to lower to fix the difference between lvs and lvcreate
This commit is contained in:
committed by
Matt Clay
parent
4602ca7bf4
commit
80e2de0e5d
@@ -132,8 +132,8 @@ def main():
|
||||
|
||||
# LVCREATE(8) -L --size option unit
|
||||
elif size[-1].isalpha():
|
||||
if size[-1] in 'bBsSkKmMgGtTpPeE':
|
||||
size_unit = size[-1]
|
||||
if size[-1].lower() in 'bskmgtpe':
|
||||
size_unit = size[-1].lower()
|
||||
if size[0:-1].isdigit():
|
||||
size = int(size[0:-1])
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user