mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
vdo: Remove unused variable (#4163)
* fix vdo error #3916 * add changelog fragment
This commit is contained in:
parent
a61bdbadd5
commit
acd8853242
2 changed files with 3 additions and 2 deletions
2
changelogs/fragments/3916-fix-vdo-options-type.yml
Normal file
2
changelogs/fragments/3916-fix-vdo-options-type.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- vdo - fix options error (https://github.com/ansible-collections/community.general/pull/4163).
|
|
@ -386,7 +386,6 @@ def deactivate_vdo(module, vdoname, vdocmd):
|
||||||
|
|
||||||
|
|
||||||
def add_vdooptions(params):
|
def add_vdooptions(params):
|
||||||
vdocmdoptions = ""
|
|
||||||
options = []
|
options = []
|
||||||
|
|
||||||
if params.get('logicalsize') is not None:
|
if params.get('logicalsize') is not None:
|
||||||
|
@ -437,7 +436,7 @@ def add_vdooptions(params):
|
||||||
if params.get('physicalthreads') is not None:
|
if params.get('physicalthreads') is not None:
|
||||||
options.append("--vdoPhysicalThreads=" + params['physicalthreads'])
|
options.append("--vdoPhysicalThreads=" + params['physicalthreads'])
|
||||||
|
|
||||||
return vdocmdoptions
|
return options
|
||||||
|
|
||||||
|
|
||||||
def run_module():
|
def run_module():
|
||||||
|
|
Loading…
Reference in a new issue