Skip to content

Commit

Permalink
vdo: Remove unused variable (#4163) (#4169)
Browse files Browse the repository at this point in the history
* fix vdo error #3916

* add changelog fragment

(cherry picked from commit acd8853)

Co-authored-by: Joseph Torcasso <[email protected]>
  • Loading branch information
patchback[bot] and jatorcasso authored Feb 7, 2022
1 parent 4a32f7b commit d97c7aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/3916-fix-vdo-options-type.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- vdo - fix options error (https://github.com/ansible-collections/community.general/pull/4163).
3 changes: 1 addition & 2 deletions plugins/modules/system/vdo.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,6 @@ def deactivate_vdo(module, vdoname, vdocmd):


def add_vdooptions(params):
vdocmdoptions = ""
options = []

if params.get('logicalsize') is not None:
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit d97c7aa

Please sign in to comment.