vdo: Remove unused variable (#4163) (#4170)

* fix vdo error #3916

* add changelog fragment

(cherry picked from commit acd8853242)

Co-authored-by: Joseph Torcasso <87090265+jatorcasso@users.noreply.github.com>
This commit is contained in:
patchback[bot]
2022-02-07 20:49:16 +01:00
committed by GitHub
parent a678029bd2
commit 815638f2ec
2 changed files with 3 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
bugfixes:
- vdo - fix options error (https://github.com/ansible-collections/community.general/pull/4163).

View File

@@ -386,7 +386,6 @@ def deactivate_vdo(module, vdoname, vdocmd):
def add_vdooptions(params):
vdocmdoptions = ""
options = []
if params.get('logicalsize') is not None:
@@ -437,7 +436,7 @@ def add_vdooptions(params):
if params.get('physicalthreads') is not None:
options.append("--vdoPhysicalThreads=" + params['physicalthreads'])
return vdocmdoptions
return options
def run_module():