fix thin argument for `lvm.lv_create'

This fixes #36604. The `--thin' option of `lvcreate' does not accept a
further argument. I checked this for LVMs library version 1.02.77
(shipped in Ubuntu 14.04) and 1.02.110 (Ubuntu 16.04).
This commit is contained in:
Thomas Bach 2016-09-27 15:14:42 +02:00
parent 2775edc176
commit 740516aace

View File

@ -280,7 +280,7 @@ def lvcreate(lvname, vgname, size=None, extents=None, snapshot=None, pv=None, **
'monitor', 'ignoremonitoring', 'permission', 'poolmetadatasize',
'readahead', 'regionsize', 'thin', 'thinpool', 'type', 'virtualsize',
'zero',)
no_parameter = ('noudevsync', 'ignoremonitoring', )
no_parameter = ('noudevsync', 'ignoremonitoring', 'thin', )
extra_arguments = []
if kwargs: