From acd88532422ba890e2a881d27ef337092ef6624d Mon Sep 17 00:00:00 2001 From: Joseph Torcasso <87090265+jatorcasso@users.noreply.github.com> Date: Mon, 7 Feb 2022 14:12:44 -0500 Subject: [PATCH] vdo: Remove unused variable (#4163) * fix vdo error #3916 * add changelog fragment --- changelogs/fragments/3916-fix-vdo-options-type.yml | 2 ++ plugins/modules/system/vdo.py | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/3916-fix-vdo-options-type.yml diff --git a/changelogs/fragments/3916-fix-vdo-options-type.yml b/changelogs/fragments/3916-fix-vdo-options-type.yml new file mode 100644 index 0000000000..badf171f5b --- /dev/null +++ b/changelogs/fragments/3916-fix-vdo-options-type.yml @@ -0,0 +1,2 @@ +bugfixes: + - vdo - fix options error (https://github.com/ansible-collections/community.general/pull/4163). diff --git a/plugins/modules/system/vdo.py b/plugins/modules/system/vdo.py index ab5cf4e400..d2888836d1 100644 --- a/plugins/modules/system/vdo.py +++ b/plugins/modules/system/vdo.py @@ -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():