Merge pull request #196 from alxgu/lvol_fix_casesensitivity
Bugfix PR for lvol: Cast size(LogicalVolumeSize) to lower .
This commit is contained in:
commit
650d740a3a
1 changed files with 2 additions and 2 deletions
|
@ -132,8 +132,8 @@ def main():
|
||||||
|
|
||||||
# LVCREATE(8) -L --size option unit
|
# LVCREATE(8) -L --size option unit
|
||||||
elif size[-1].isalpha():
|
elif size[-1].isalpha():
|
||||||
if size[-1] in 'bBsSkKmMgGtTpPeE':
|
if size[-1].lower() in 'bskmgtpe':
|
||||||
size_unit = size[-1]
|
size_unit = size[-1].lower()
|
||||||
if size[0:-1].isdigit():
|
if size[0:-1].isdigit():
|
||||||
size = int(size[0:-1])
|
size = int(size[0:-1])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue